chronon-backend-sqlite
Embedded, file-backed SQLite SchedulerStore adapter for Chronon. SQLite serializes writes — one Chronon scheduler + worker pool on a single host is fine; for concurrent claim-heavy workloads prefer PostgreSQL or the Postgres + Redis composite backend.
Compose with Chronon
use Arc;
use *;
use SqliteSchedulerStore;
let store: = new;
let chronon = new
.scheduler_store
.embedded
.build?;
Runnable examples (full runbook: chronon/README.md):
# Embedded (standalone)
# Coordinator–worker same-host — shared path; coordinator first; unique worker ids
# Terminal 1
# Terminal 2
CHRONON_INSTANCE_ID=worker-a
# Terminal 3
CHRONON_INSTANCE_ID=worker-b
Topology docs: Embedded / Coordinator–worker.
Configuration
| API | Use when |
|---|---|
SqliteSchedulerStore::new(path) |
File on disk (/var/lib/chronon/chronon.db) |
SqliteSchedulerStore::connect(url) |
Full URL including :memory: for tests |
SqliteSchedulerStore::from_pool(pool) |
Host already owns an sqlx pool |
CHRONON_SQLITE_PATH |
Shared file path for examples / same-host split |
Schema bootstrap runs automatically on connect.
Cargo feature
= { = "...", = false, = ["sqlite"] }
Contract tests
Runs in PR CI alongside chronon-backend-mem.
Documentation
See also: chronon-backend-sql-common.