You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Mike Personick (Jira)" <ji...@apache.org> on 2022/08/09 17:12:00 UTC

[jira] [Updated] (TINKERPOP-2783) Add an "evaluationTimeoutBehavior" token to complement "evaluationTimeout"

     [ https://issues.apache.org/jira/browse/TINKERPOP-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Personick updated TINKERPOP-2783:
--------------------------------------
    Description: 
Currently, "evaluationTimeout" has implied "error" semantics - providers only have one choice for how to handle the timeout - return an error to the caller. We would like to add another choice of timeout semantics - return partial results to the caller, whatever can be calculated before the timeout. This would be very useful for pathfinding queries - just calculate whatever paths you can within some time limit.

Add another token "evaluationTimeoutBehavior", that lets providers define custom semantics for what happens at timeout on a per-query basis using .with(). "Error" being the default, but allowing for other possibilities, such as "PartialResults".

  was:
Currently, "evaluationTimeout" has implied "error" semantics - providers only have one choice for how to handle the timeout - return an error to the caller. We would like to add another choice of timeout semantics - return partial results to the caller, whatever can be calculated before the timeout. This would be very useful for pathfinding queries - just calculate whatever paths you can within some time limit.

Add another token "evaluationTimeoutBehavior", that lets providers define custom semantics for what happens at timeout. "Error" being the default, but allowing for other possibilities, such as "PartialResults".


> Add an "evaluationTimeoutBehavior" token to complement "evaluationTimeout"
> --------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2783
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2783
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: language
>    Affects Versions: 3.7.0
>            Reporter: Mike Personick
>            Assignee: Mike Personick
>            Priority: Major
>
> Currently, "evaluationTimeout" has implied "error" semantics - providers only have one choice for how to handle the timeout - return an error to the caller. We would like to add another choice of timeout semantics - return partial results to the caller, whatever can be calculated before the timeout. This would be very useful for pathfinding queries - just calculate whatever paths you can within some time limit.
> Add another token "evaluationTimeoutBehavior", that lets providers define custom semantics for what happens at timeout on a per-query basis using .with(). "Error" being the default, but allowing for other possibilities, such as "PartialResults".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)