kkrunner.RunStore

class kkrunner.RunStore(directory)[source]

Bases: object

Run history stored as date-sharded durable JSON files.

processing_lock(record)[source]

Exclusive live processing ownership, released by the OS after death.

submission_lock()[source]
save(record)[source]

Create a record, allowing only an identical idempotent repeat.

Existing records can change only through update(), under their global per-ID lock. An ID is unique across all date shards of this store.

Parameters:

record (RunRecord)

update(record, updater)[source]
Parameters:

record (RunRecord)

get(run_id)[source]
runs(*, active=None, limit=None, newest=False)[source]