Abort Query
This action stops an in-flight query, one that was triggered via Run or Preview and is still waiting for a response, when an event occurs.
Configuration
| Parameter | Description | Default |
|---|---|---|
| Query | The query to abort | — |
| Debounce | Time in milliseconds to wait before executing the action | Empty (no delay) |
Behavior
- Abort only cancels the pending request on the client. If the data source (for example, a database) has already started processing the query, it may continue running on its end until it completes on its own.
- Abort is not available for RunJS, RunPy, and Workflow queries, since these don't execute as cancellable network requests.
Triggering via RunJS
queries.<queryName>.abort();
or
await actions.abortQuery('<queryName>');
info
For a full quick-reference of all actions' RunJS syntax, see Run Actions from RunJS.