Kill a query?

Hey folks, is it possible to kill a long running query?
1 Reply
porunov
porunov5mo ago
If you use gremlin server you can set “scriptEvaluationTime” to desired max evaluation time after which the query should be interrupted. If you use any GLV or direct API then your query is executed your own managed thread. In such case you should interrupt your thread (‘yourThread.interrupt()’). Notice, however, that of you are interrupting a mutation query with disabled storage atomicity you may potentially end up with partially mutated data (didn’t really test this case, so just guessing).
Want results from more Discord servers?
Add your server