Gremlin Query for amount of time and return all results?

Is there a way to make gremlin keep running until time elapses then return the results? I have a query that I am working on that looks for paths of a size, i want this to run for a length of time and return all the paths it can find in that time. Right now I have it set to stop at paths of size N, which I'd like to be instead run for time X.
4 Replies
Flynnt
Flynnt11mo ago
Checkout the timeLimit step. It may do what you want
Lyndon
Lyndon11mo ago
Yeah i just found that and was tryingf to get it to work, thanks for the tip
spmallette
spmallette11mo ago
there is an open issue to add a "evaluationTimeoutBehavior" which would do what you're asking. it just hasn't been implemented yet: https://issues.apache.org/jira/browse/TINKERPOP-2783
Lyndon
Lyndon11mo ago
the timeLimit actually works in my case since I am doing a repeat/emit flow but that would also be cool
Want results from more Discord servers?
Add your server
More Posts