Last updated 2026-05-18
Leases
Leases enforce active concurrency. Use them for operations such as active LLM calls, exports, payroll runs, or code execution slots.
Acquire
AcquireLease accepts only ALGORITHM_CONCURRENCY
limits. It removes expired leases, checks active counts, and creates a
lease across all supplied limits if capacity exists.
Renew
RenewLease extends the TTL for long-running operations.
Release
ReleaseLease removes the lease from all impacted sorted sets.
It is safe to retry with the same request ID.