Skip to main content

extend_live_leases

Function extend_live_leases 

Source
pub(super) fn extend_live_leases(state: &AppState, now: i64)
Expand description

Keep the leases of claims whose holder is alive, so a long tool call or a model that never calls heartbeat doesn’t lose its task (§6.8). A holder is alive while it is registered and its process runs; one that is out of quota or signed out is alive but may let go of a task nobody in particular owns (renews_lease). Run before the reap.