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