Claim a shared task
claim_taskCoordinate independent agents using the same account, namespace and stable task key. Acquire a timed lease or retrieve the existing reservation/result. One credit per new unique task, with free lease reacquisition. Use idempotency_key to replay an active acquisition after a lost response; choose a fresh key for a later acquisition. A lease cannot guarantee exactly-once external side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_key | Yes | Stable logical task identifier. | |
| namespace | No | Shared task namespace. | |
| worker_id | Yes | Worker identifier. | |
| lease_seconds | No | Lease lifetime. | |
| idempotency_key | No | Stable identifier for retries; reusing it with different input returns 409. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||