Skip to main content

Module jobs

Module jobs 

Source
Expand description

Durable PostgreSQL job storage: job rows, publication generations, fenced execution leases and overlap locks.

The job row owns execution state and the publication row owns pending transport delivery; the queue message is never authoritative. The execution claim is a single compare-and-set that mints an opaque lease identity; every mutation re-checks that identity, so a stale invocation — even one reusing the same worker name — cannot alter a newer claim’s state. Retry state and the next publication generation commit in one transaction.

Structs§

PostgresJobStore
PostgreSQL-backed job store implementing every job port.