ACAgentic Craft

AdvancedHazelJS

Lease

A short-lived lock granting a worker exclusive rights to process a durable run.

Authors
editorial-team
Published
Last reviewed

Direct answer

A short-lived lock granting a worker exclusive rights to process a durable run.

Plain language

A sticky note that says “I’m working on this” and expires if you disappear.

Technical explanation

Compare-and-set ownership with expiry/heartbeat on durable AgentRun stores; expired leases allow takeover; prevents dual execution when healthy.

Example

Worker A renews a 30s lease while AgentRuntime executes a tool; on crash, worker B acquires after expiry from the same createSqlDurableRunStore.

Related

← All glossary terms