Skip to main content

release_claims_and_list_crons

Function release_claims_and_list_crons 

Source
async fn release_claims_and_list_crons(
    state: &AppState,
    who: &AgentIdentity,
    reason: &'static str,
) -> (usize, Vec<String>)
Expand description

Release the agent’s work claims, so the items go back to the pool now rather than when the 120 s lease expires, and list the crons that target it (kept: a cron is a deliberate schedule that resumes when the agent is reopened). SQLite reads and writes, off the async workers.