Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specification of a query timeout on a per endpoint basis #21

Open
bwmcbride opened this issue Sep 25, 2017 · 4 comments
Open

Allow specification of a query timeout on a per endpoint basis #21

bwmcbride opened this issue Sep 25, 2017 · 4 comments

Comments

@bwmcbride
Copy link
Member

The use case here concerns develop long running test queries for a service. The service supports two query endpoints - the production endpoint with a short default timeout and a second endpoint which allows timeout overrides.*

It is convenient when developing test queries to use the qonsole form accessing the test endpoint, but the queries need to be sent to the endpoint with a timeout override. It would be useful to be able to configure the timeout value in the Qonsole configuration of the endpoint. In some cases it may also be desirable to be able to enter a timeout value in the form.

  • In an ideal world Fuseki would allow the specification of a different default timeout on a per endpoint basis.
@paperclipmonkey
Copy link

Would support for cancelling requests #24 support this use-case adequately @bwmcbride ?

@bwmcbride
Copy link
Member Author

In the case of queries going to Fuseki, I don't think cancelling the request gets as far as Fuseki so the long running query continues to run inside the server. Setting a small number of such queries running can saturate a server.

Setting a timeout on the query does cause it to terminate on the server.

So being able to set timeouts is still desirable.

Its not high priority though. There was a period during the EPO project when it would have been handy. The client was forced to use curl instead. But that is not a live issue at the moment.

@paperclipmonkey
Copy link

paperclipmonkey commented Aug 23, 2018 via email

@bwmcbride
Copy link
Member Author

The timeout can be set in a header ('Timeout:') or a query parameter('&timeout=')
There are two formats for the timeout value:

1000
10000,60000

The first is a single overall timeout value in ms.

The second two numbers are also in milliseconds; the first number is max time to first result; the second number is the time to complete the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants