© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Apache TinkerPopAT
Apache TinkerPop•16mo ago•
4 replies
Arthur from gdotv

Is there a way to specify a query execution timeout via the GremlinLangScriptEngine?

I'm adding a way to specify a query timeout when running queries via G.V(). On the G.V() playground which uses TinkerGraph internally, we "submit" queries directly to the in-memory graph via the GremlinLangScriptEngine. Is there an equivalent of adding a timeout as seen in the Client object via the RequestOptions?
Solution
no, it's just like standard
ScriptEngine
ScriptEngine
implementations in that it operates in the current thread without interrupt. we'd wrapped the
GremlinScriptEngine
GremlinScriptEngine
up into the
GremlinExecutor
GremlinExecutor
to try to generalize behavior for timeouts and
Future
Future
based execution. you would have to use that class to get that sort of behavior and avoid direct use of the
GremlinLangScriptEngine
GremlinLangScriptEngine
directly.
Jump to solution
Apache TinkerPop banner
Apache TinkerPopJoin
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,376Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

@GremlinDSL support in the GremlinLangScriptEngine
Apache TinkerPopATApache TinkerPop / questions
3y ago
Is there a way to store the tinkerpop graph in DynamoDB?
Apache TinkerPopATApache TinkerPop / questions
3y ago
Gremlin Query timeout issue
Apache TinkerPopATApache TinkerPop / questions
12mo ago
Is it possible to extract the requestId of an Amazon Neptune Gremlin query via gremlin-driver?
Apache TinkerPopATApache TinkerPop / questions
3y ago