Skip to main content

renews_lease

Function renews_lease 

Source
fn renews_lease(
    item: &WorkItem,
    unavailable: Option<&Unavailable>,
    now_ms: i64,
) -> bool
Expand description

Whether a live holder’s lease on item is renewed (R5 of docs/specs/SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md). Always, except for a holder that is out of quota or signed out on a task open to anyone or to a group: after 30 minutes of it, and with its reset more than an hour away (or not known), the lease lapses so someone else can take the task. A task aimed at an agent stays with it and shows in Needs you. The rule is decide with Intent::Lease (backend/agent_status.rs), with the numbers.