create_cancellation
Bulk cancel all runs of an Inngest function within a given time range, optionally filtering by CEL expression.
Instructions
Bulk cancel function runs matching criteria. Cancels all runs of a function within a time range, with an optional expression filter.
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": {
"app_id": "<app_id>",
"function_id": "<function_id>",
"started_after": "<started_after>",
"started_before": "<started_before>"
},
"name": "create_cancellation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| if | No | Optional CEL expression to filter which runs to cancel | |
| app_id | Yes | The app ID | |
| function_id | Yes | The function ID to cancel runs for | |
| started_after | Yes | Cancel runs started after this time (ISO 8601) | |
| started_before | Yes | Cancel runs started before this time (ISO 8601) |