Examples
View SourceTask-oriented guides. Each is also published as a page in the generated docs under Guides.
Start here:
- Getting started, the worker path: enqueue jobs, run a worker, tune the queue, enqueue inside your own transaction.
- Unique jobs, database-enforced deduplication with a temporal constraint.
- Workflows, DAG dependencies that actually block, resolved by a SQL/PGQ property graph.
Going further:
- pgmq, durable message streaming: batch delivery, topics, FIFO groups, and three ways to wake a consumer.
- Migration helpers, reuse Ergon's PostgreSQL patterns for your own tables, and register your migrations with Ergon's runner.
- Scheduling, recurring SQL with pg_cron, and why Ergon prefers cron ticks to row triggers.
- Operations, health checks, disaster recovery, derived-state drift, and boot-time partition safety.
Every example is runnable against the setup in the top-level README.