Kronos Store
Storage abstraction used by Kronos. Implement this interface to add a new backend.
The default implementation is MongoKronosStore from the kronos-mongo artifact. Implementations are responsible for both persistence and any caching strategy they choose.
Functions
Atomically increment the locks counter on the job with this id. Returns the job or null if the document no longer exists. A null return signals that execution should be aborted.
Return the count of jobs with the given name.
Delete all jobs with the given name. Returns true if acknowledged.
Return jobs eligible to run right now: startTime <= nowMs and locks == 0. This query runs every minute — it must be efficient (index-backed).
Return all scheduled jobs with the given name.
Called once at startup — create indexes, run schema migrations, etc.