Extend a task lease
extend_taskExtend a running task's lease to prevent it from being considered stale and handed to another worker. Specify extra milliseconds and include the fencing token to validate the claim.
Instructions
Heartbeat a long-running task: extend its lease by extraMs so it is not reaped and handed to another worker. Must carry the claim fencingToken.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"taskId": "<taskId>",
"fencingToken": "<fencingToken>",
"extraMs": "<extraMs>"
},
"name": "extend_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| extraMs | Yes | extend the lease by this many ms | |
| fencingToken | Yes |