superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michel...@apache.org
Subject [incubator-superset] 04/13: [sql lab] Fix new query stuck at pending state (#7523)
Date Sat, 01 Jun 2019 01:28:18 GMT
This is an automated email from the ASF dual-hosted git repository.

michellet pushed a commit to branch release--0.33
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit e4bed9d5aab160842a3294b284c0bf446dc9547b
Author: Grace Guo <grace.guo@airbnb.com>
AuthorDate: Thu May 16 15:22:23 2019 -0700

    [sql lab] Fix new query stuck at pending state (#7523)
    
    
    (cherry picked from commit 7f858e4566bd4944a904c0530709e0ba0a89eb5e)
---
 superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx b/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx
index 6db56d7..16aff30 100644
--- a/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx
+++ b/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx
@@ -38,11 +38,10 @@ class QueryAutoRefresh extends React.PureComponent {
   }
   shouldCheckForQueries() {
     // if there are started or running queries, this method should return true
-    const { queries, queriesLastUpdate } = this.props;
+    const { queries } = this.props;
     const now = new Date().getTime();
 
     return (
-      queriesLastUpdate > 0 &&
       Object.values(queries).some(
         q => ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0 &&
         now - q.startDttm < MAX_QUERY_AGE_TO_POLL,


Mime
View raw message