Bulk Cancel Workflow Runs
Changed onCancel all matching workflow runs.
Request
- Base URLhttps://qstash-eu-central-1.upstash.io
- Auth
- HTTP bearer
- or API key in query parameter qstash_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Optional list of specific workflow run IDs to cancel. If provided, the other filters are ignored.
The URL of the workflow whose runs to cancel. Supports multiple values.
workflow url is searched as a prefix by default. To make it exact match, workflowUrlExactMatch can be set to true.
Optional start date to filter workflow runs to cancel. Unix timestamp in milliseconds.
Optional end date to filter workflow runs to cancel. Unix timestamp in milliseconds.
Optional caller IP address to filter workflow runs to cancel. Supports multiple values.
Optional flow control key to filter workflow runs to cancel. Supports multiple values.
Optional label to filter workflow runs to cancel. Supports multiple values. You can pass multiple values to match workflow runs with any of the given labels (OR logic).
Examples:
- label=my_label
- label=label_1&label=label_2
- label=label_1,label_2
Optional host of the workflow URL to filter workflow runs to cancel. Supports multiple values.
Optional path of the workflow URL to filter workflow runs to cancel. Supports multiple values.
Only applies to filter-based cancels. If true, the request returns as soon as the bulk action is created, without waiting for it to finish. The response includes the actionId of the bulk action.
Deprecated. This parameter is ignored, and all workflow runs matching the filters are cancelled.
Response
Workflow runs cancelled, or the bulk action is created when async=true.
Changes
- breaking
for the
queryrequest parametercount, default value100was removed - info
added the new optional
queryrequest parameterasync - info
added the new optional
queryrequest parameterhost - info
added the new optional
queryrequest parameterpath - info
the
queryrequest parameterworkflowUrlbecame optional - info
queryrequest parametercountwas deprecated - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status
- breaking
- info
for the
queryrequest parametercallerIp, the type was generalized fromstringtoarray - info
for the
queryrequest parameterflowControlKey, the type was generalized fromstringtoarray - info
for the
queryrequest parameterworkflowUrl, the type was generalized fromstringtoarray
- info