| Age | Commit message (Collapse) | Author |
|
Change `initialise_job` to accept metadata as keyword arguments, with
`expiry_seconds` as a keyword-only reserved argument. Document the
`external_id` value, and the `workflow_claim` metadata convention for
idempotent stage transitions.
Call sites that pass `extra_meta={...}` must unpack the dict instead.
Co-authored-by: pi coding agent <pi@pi.dev>
|
|
Fetch jobs whose metadata contains all the given key/value pairs, returning
each job with its metadata, newest first. This supports idempotent stage
transitions without mutating completed jobs.
Co-authored-by: pi coding agent <pi@pi.dev>
|
|
Add a `(metadata_key, metadata_value)` index to `jobs_metadata` so jobs can be
looked up by their metadata without scanning the table.
Co-authored-by: pi coding agent <pi@pi.dev>
|