Suppose there is an AQL query that’s executing in the server for a long time already and you want to get rid of it. What can be done to abort that query?
If a connection to the server can still be established, the easiest is to use the ArangoShell to fetch the list of currently executing AQL queries and send a kill command to the server for the correct query.
To start, we can fetch the list of all running queries and print their ids, query strings and runtimes. This is only inspection and does not abort any query:
var queries = require("org/arangodb/aql/queries"); queries.current();
Here’s..