about summary refs log tree commit diff
path: root/tests/unit/test_jobs.py
AgeCommit message (Collapse)Author
8 daysMake initialise_job metadata keyword-only HEAD mainFrederick Muriuki Muriithi
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>
8 daysAdd jobs_by_metadata to look up jobs by metadataFrederick Muriuki Muriithi
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>
8 daysIndex the jobs metadata by key and valueFrederick Muriuki Muriithi
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>