Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2296

Per query timeout not working from Python

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.4.3
    • 3.5.0, 3.4.9
    • python, server
    • None
    • Gremlin Server 3.4.3 and GremlinPython latest

    Description

      I had a discussion with spmallette about some problems I have been running into trying to get per query timeouts to work using the Python GLV client. As best as I can tell the timeout setting just gets ignored. The query executes to completion taking as many seconds as needed. Stephen asked for a Jira so writing this up here.

      Using the air-routes data set this query can take a few seconds so should definitely time out at 200ms. Using the Java client the same query works although I had an exception when using the Binary serializer but it worked when using GraphSON. I don't know yet if that is relevant to this issue.

       

      paths = (g.V().with_('scriptEvaluationTimeout', 200).
               has('airport', 'code', 'AUS').
               repeat(__.out('route').simplePath()).
               until(__.has('code', 'AGR')).
               path().by('code').
               limit(10).
               toList())

       

      As a sidenote it would be nice if the Python client had an equivalent of the Java Tokens class so that constant variable names rather than strings could be used for the 'scriptEvaluationTimeout' part.

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              gfxman Kelvin R. Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: