chronon-backend-postgres
Shared durable PostgreSQL SchedulerStore for production coordinator–worker clusters.
Compose with Chronon
use Arc;
use *;
use PostgresSchedulerStore;
let store: = new;
let chronon = new
.scheduler_store
.embedded
.build?;
Runnable examples:
# Embedded boot
# Coordinator–worker split (shared CHRONON_POSTGRES_URL)
&
CHRONON_INSTANCE_ID=worker-a
Topology docs: Embedded /
Coordinator–worker.
For production claim throughput, prefer Postgres + Redis (coordinator_daemon / worker_daemon).
Environment
| Variable | Purpose |
|---|---|
CHRONON_POSTGRES_URL |
Primary URL for tests and CI |
CHRONON_TEST_POSTGRES_URL |
Fallback test URL |
Use postgres_test_url() to resolve URL precedence in test helpers.
Isolated schemas (PostgresSchedulerStore::connect_isolated / CHRONON_POSTGRES_SCHEMA)
must pass validate_postgres_schema_name —
only ^[A-Za-z_][A-Za-z0-9_]*$ up to 63 characters.
Cargo feature
Enable via chronon crate feature postgres:
= { = "...", = false, = ["postgres"] }
Contract tests
Documentation
See also: chronon-backend-sql-common.