I want to set scriptevaluationtimeout 0.
I'm using apache-tinkerpop-gremlin-console-3.4.9.
and I want to use gremlin-python.
Asked
Active
Viewed 2,089 times
3

afternoon_drinker
- 79
- 5
-
What are you planning to do? scriptevaluationtimeout as 0 will cause every query to fail. Is that what you want? Also apache-tinkerpop-gremlin-console uses groovy internally and is different from gremlin-python. Are you looking for an answer to both? – Divij Dec 15 '20 at 02:31
-
0 is the configuration that will disable the timeout all together. – stephen mallette Dec 15 '20 at 09:13
1 Answers
2
As the question above noted, it's not quite clear whether you mean Gremlin Console or gremlin-python so I will just answer both ways. For Gremlin Console, the preferred method for remote connections is to issue this command:
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Configured localhost/127.0.0.1:8182
gremlin> :remote config timeout none
The above is detailed in this section of the Reference Documentation. For gremlin-python you can configure per request timeouts as described here for scripts:
result_set = client.submit('g.V().repeat(both()).times(100)', result_options={'evaluationTimeout': 0})
vertices = g.with_('evaluationTimeout', 0).V().out('knows').toList()

stephen mallette
- 45,298
- 5
- 67
- 135
-
thanks. gremlin> :remote config timeout none ==>Remote timeout is disabled Script evaluation exceeded the configured 'scriptEvaluationTimeout' threshold of 30000 ms or evaluation was otherwise cancelled directly for request [graph.traversal().withComputer().V().has('lat', 34.66494274048).shortestPath().with(ShortestPath.target, __.has('lat', 34.66561185416)).with(ShortestPath.distance, 'cost')] – afternoon_drinker Dec 16 '20 at 07:55
-
I think so.. I set the remote config timeout none , and above traverse Failed(scriptEvaluationTimeout). I will try the same query by python-gremlin. – afternoon_drinker Dec 21 '20 at 03:16
-
-
-
1:remote config timeout 3000000 worked.but evaluationTimeout. – afternoon_drinker Jan 04 '21 at 08:28
-
related novice question on best practices for setting proper timeouts and retries: https://stackoverflow.com/questions/65942700/how-to-make-gremlin-python-driverremoteconnection-to-have-timeout-and-retry-limi – user3659451 Jan 28 '21 at 17:58