Get task ids after executing search query

I need to give a user an ability to terminate a query initiated by Elasticsearch-DSL or Elasticsearch-py. I know how to get a list of tasks running on the server but I can't just terminate all of them since there is a chance that one user will terminate task query for another user. So, how could I get task id to store it to terminate later after we execute a query:

https://elasticsearch-dsl.readthedocs.io/en/latest/search_dsl.html

I would look at this,

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.