-
Notifications
You must be signed in to change notification settings - Fork 11
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
User defined timeout for synchronous /result
#387
Comments
IMHO this use case only makes sense with the secondary web services, not with /results?! |
Isn't it pretty hard for a user to estimate the runtime? I'm also not sure a user would set this. It would not be nice if he sets 20secs and result would have been there after 21secs. That wastes even more money. A process may not even have started after 20secs if the back-end is busy... Additionally, there's also the So right now I don't see much use in this and would vote for not implementing it. |
Indeed, the secondary services would be a good fit for that use case I gave there,
Sure, this would not be for users we're currently have in mind (exploration in jupyter for example). I was more thinking about third party apps that integrate with openEO and don't want to slam the backend with wasteful requests.
This feature would allow the backend to lower the load by prematurely aborting requests that wouldn't meet the deadline.
At the moment there is indeed no concrete use case (except maybe for the secondary services). It's just an idea I wanted to park here. |
Okay, good. Assigned to "future" milestone for now. |
Might also be relevant in the federation context: @soxofaan wrote:
|
One thought that came up is that it's also unclear how to communicate what the default timeout is. |
indeed, makes sense to put this information in the capabilities doc (or something alike). Could also list other constraints like maximum upload/download file size limits |
Feature idea that came up will discussing slow synchronous processing requests:
Let the user (optionally) define a maximum time to spend on a synchronous
/result
request:e.g. "if this takes more than 20 seconds, you can just abort this, I won't be looking at the result probably"
Example use case: interactive viewer, where user is relatively quickly panning and zooming around.
Backend can then free computing resources more efficiently.
And ideally, if backend can reasonably predict how long a particular request will take, it can even avoid burning resources that would be wasted.
The text was updated successfully, but these errors were encountered: