Skip to main content

Module store

Module store 

Source

Constants§

WORKFLOW_TTL_SECS
TTL for expired workflow files (24 hours).

Functions§

cleanup_expired
Remove workflow files older than WORKFLOW_TTL_SECS.
clear_active
clear_active_for_agent
is_run_stale
Whether run has been inactive for longer than the stale threshold. The one stale rule, for the store and for both tool gates (workflow::gate). The stand-in for a withheld workflow is never stale: it ends when the stored workflow loads again or is stopped explicitly, not by the passing of time.
is_withheld_sentinel
Whether run is the stand-in withheld_sentinel builds. The one test for it: the store, the stale rule and the tool gate all ask here. The marker is the reserved name pair, which no stored workflow can carry — save_active_for_agent refuses to write a run that has it.
load_active
load_active_for_agent
save_active
save_active_for_agent