cancel_all
Cancel all queued or scheduled tasks in the queue at once, leaving running, completed, or failed tasks untouched. Returns the number of tasks cancelled.
Instructions
Bulk-cancel every task in the queue that is still cancellable (status queued or scheduled). Running/completed/failed/cancelled tasks are left untouched. Optionally filter by status. Returns the number of tasks cancelled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Optional. If set, cancel only tasks in this status. Valid: 'queued', 'scheduled'. Defaults to both. |