1
votes

I want to set scriptevaluationtimeout 0.
I'm using apache-tinkerpop-gremlin-console-3.4.9.
and I want to use gremlin-python.

1
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
0 is the configuration that will disable the timeout all together.stephen mallette

1 Answers

0
votes

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})

or here for bytecode:

vertices = g.with_('evaluationTimeout', 0).V().out('knows').toList()