1 Reply
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).