How does query killing work via the API?

Knowledge Drop

Last tested: Oct 7, 2019
 

Here are some facts about queries are killed via the API:

  • Only admin API users can kill queries via the API
  • You can kill a query with the kill_query() endpoint, which requires us to know the query_task_id (not the query_id)
  • Only async query tasks can be killed. To be able to kill a query, it has to have been created using create_query_task()
  • Queries run via synchronous run_query() or run_inline_query() cannot be killed
  • Closing an API connection does not kill the query like it does in the front-end

This content is subject to limited support.                

Version history
Last update:
‎07-07-2021 01:55 PM
Updated by: