cronoq-store-postgres
A PostgreSQL Store for
cronoq schedulers with Bytes payloads and outputs:
- Durability: every engine step's mutations are committed in one transaction before submissions are acknowledged; non-terminal tasks, recent terminal statuses, outputs and recurring schedules are recovered on startup.
- Leader election: a session-level advisory lock elects one active scheduler; standbys wait and take over when its session ends.
- Fencing: every commit checks the leader epoch in the same transaction, so a deposed leader cannot write.
- Housekeeping:
prune(older_than)removes old finished tasks;get_tasklooks tasks up by id or key.
use Bytes;
use ;
use PgStore;
# async
cronoq-server uses this store when configured with [store] kind = "postgres".
Licensed under MIT or Apache-2.0, at your option.