mistercrunch commented on a change in pull request #3109: Long running queries 
are set to timeout (#2926)
URL: 
https://github.com/apache/incubator-superset/pull/3109#discussion_r131428924
 
 

 ##########
 File path: superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx
 ##########
 @@ -16,11 +17,18 @@ class QueryAutoRefresh extends React.PureComponent {
   componentWillUnmount() {
     this.stopTimer();
   }
+  setPotentialTimeout(query) {
+    // if a running query is over 24 hrs ago, set the state timeout
+    if (query.state === 'running' && addXHours(query.startDttm, 24) < now()) {
 
 Review comment:
   I would like for this to be aligned with the backend:
   SQLLAB_ASYNC_TIME_LIMIT_SEC
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to