Error with evaluationTimeout When Adding Edges Asynchronously in Gremlin

44 views
Skip to first unread message

Lesley Deng

unread,
Oct 27, 2024, 9:48:23 PM10/27/24
to Gremlin-users
Hi,

I'm getting a runtime error "consider increasing the limit given to evaluationTimeout" when trying to add edges to a graph asynchronously using remote_conn.submit_async(traversal.bytecode). Is there a configuration setting I can adjust to resolve this issue?

Cole Greer

unread,
Oct 31, 2024, 12:05:00 PM10/31/24
to Gremlin-users
Hi,

I'm assuming based on the use of snake_case that you are using Gremlin Python. When submitting bytecode via DriverRemoteConnection, settings such as 'evaluationTimeout' can be set by adding a `with()` configuration to your traversal as in "g.with('evaluationTimeout', 5000)". The evaluationTimeout value represents a timeout in milliseconds. If you are directly using a Client, you may also pass request options to submit via a struct as shown here.

Note that certain graph providers may choose to override a timeout requested by the client with some global timeout on the server. If you are still encountering timeouts, please check your graph providers documentation for details, or reply back with the specific database you are using and someone may be able to offer more specific guidance.

Thanks,
Cole
Reply all
Reply to author
Forward
0 new messages