Renew lease
renew_leaseExtend a lease that this caller still owns. Use it before the current TTL ends when work is still running. The owner token is required and must stay secret. Renewal cannot move the absolute 24 hour limit. No authentication is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Work identity. With a namespace use 1 to 128 URL-safe ASCII characters, starting with a letter or digit. Without one use a caller-generated secret of 32 to 200 ASCII characters from A-Z, a-z, 0-9, dot, underscore, colon, tilde or hyphen, with at least eight distinct characters. | |
| namespace | No | Optional 256-bit namespace from create_lease_namespace. Keep it secret. | |
| owner_token | Yes | Secret owner token returned by acquire_lease. | |
| ttl_seconds | No | The new lease length in seconds from now, 1 to 86400, default 60. It cannot pass the absolute 24 hour limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No | ||
| status | Yes | ||
| owner_token | No | ||
| ttl_seconds | No | ||
| completed_at | No | ||
| fencing_token | No | ||
| lease_expires_at | No | ||
| absolute_expires_at | No | ||
| retry_after_seconds | No | ||
| completed_at_timestamp | No | ||
| lease_expires_at_timestamp | No | ||
| absolute_expires_at_timestamp | No |