Operations
Housekeeping
Tick, reaper, and NOTIFY vs poll.
Tick / reaper
Housekeeping is advisory-lock-deduped maintenance: reap expired leases and related cleanup. On the HTTP host, prefer TaskqRuntime / taskq_lifespan so the facade process owns tick + optional claim-wait listener.
Schedule firing and full workflow rollups are destination design. Treat lease reaping as the 0.1 correctness path; do not assume cron schedules fire automatically just because
croniter is a dependency.Wake path
Polling is correctness. NOTIFY is latency.
DSN workers may LISTEN for early wakeups (WorkerSettings.listen, default true). Missed notifications never lose jobs. HTTP workers cannot listen — they poll (optionally with claim-wait long-poll on the facade).
Soft stop
On SIGTERM: stop claiming → wait soft_stop_timeout → hard-cancel handlers → release running work with a shutdown cause.