Most databases provide a mechanism for users to list running queries and cancel them if required. This is particularly useful is terminating queries that take a lot of time. For example, in MySQL you woul do something like this:
mysql>show processlist;
mysql> kill <pid>;
How can I do Something similar on a gremlin server? So far, the only knob available is the scriptEvaluationTimeout
in the yaml configuration, which lets you terminate your request on timeout. I'm interested in an API that can list all running queries and an API that can let me delete queries by ID. If that's not supported already, does tinkerpop have plans to support it in newer versions? SOmething like:
g.query()
g.query('123')
g.query('123').cancel()