We use Airflow tasks to call queries that contain apoc procedures. However, when tasks are marked as Failed, the query doesn't stop and continues its execution on the server. It's extremely annoying, since following that we need to kill these queries manually either from console or web browser.
To overcome this inconvenience, I would like to know if it is possible to get a query id from a query that was called using session.run(query) method from GraphDatabase.driver. In this case GraphDatabase is a part of neo4j python library.
Looking forward to your comments and suggestions!