cancel_task
Request cooperative cancellation of a running task by setting an atomic flag. The worker checks the flag and exits cleanly, preventing unsafe forced termination. Idempotent for unknown or already-terminal tasks.
Instructions
Request COOPERATIVE cancellation of a running task. Sets the task's atomic flag; the worker observes it on its next polling iteration (~50ms) and exits cleanly to status='cancelled'. UE has no safe forced-thread-termination, so workers that don't poll the flag run to completion regardless. Idempotent: returns ok=true with accepted=false for unknown ids and already-terminal tasks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task id returned by start_*_task. |