Acquire Lock
lock_acquireAcquire a mutual-exclusion lock so concurrent agent runs do not double-process the same work. If two runs race, exactly one gets acquired=true plus a release token; the other gets acquired=false with retry_after_ms. Locks auto-expire after ttl_seconds (default 60s, max 3600s), so a crashed run can never wedge the lock. Not reentrant. Use it before processing a shared job, then lock_release when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lock or counter name within the namespace. | |
| namespace | Yes | Your private namespace. Pick a long unique string; it acts as the access key. | |
| ttl_seconds | No | Seconds until the lock auto-expires. Default 60. |