You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/07/11 18:45:51 UTC
[GitHub] dsoukhov opened a new pull request #3109: Long running queries are set to timeout (#2926)
dsoukhov opened a new pull request #3109: Long running queries are set to timeout (#2926)
URL: https://github.com/apache/incubator-superset/pull/3109
Hi all,
I know there are still some issues (ie code repetition in core.py) but I'd like to see if I'm approaching the issue correctly.
My implementation currently behaves similarly to stopping a query. If a running query is older than 24hrs the newly exposed /timeout_query/ will be called via POST to set the state of the query to timed_out. This check for a timeout_query takes place when polling and searching for a query.
I've also added a filter timed_out to the query search.

I've also tried to add all the relevant unit tests
Please tell me what you guys think.
Thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services