diff --git a/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx b/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx index 295c32f8bb657..1e9fe05e1b6c8 100644 --- a/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx +++ b/superset/assets/src/SqlLab/components/QueryAutoRefresh.jsx @@ -26,7 +26,7 @@ class QueryAutoRefresh extends React.PureComponent { return ( queriesLastUpdate > 0 && Object.values(queries).some( - q => ['running', 'started', 'pending', 'fetching', 'rendering'].indexOf(q.state) >= 0 && + q => ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0 && now - q.startDttm < MAX_QUERY_AGE_TO_POLL, ) ); diff --git a/superset/assets/src/SqlLab/constants.js b/superset/assets/src/SqlLab/constants.js index 1e98aa0257809..b8d25cb1da721 100644 --- a/superset/assets/src/SqlLab/constants.js +++ b/superset/assets/src/SqlLab/constants.js @@ -5,7 +5,6 @@ export const STATE_BSSTYLE_MAP = { fetching: 'info', running: 'warning', stopped: 'danger', - rendering: 'info', success: 'success', }; diff --git a/superset/assets/src/SqlLab/reducers/sqlLab.js b/superset/assets/src/SqlLab/reducers/sqlLab.js index ff881c327a3ee..71d3d7b0e204c 100644 --- a/superset/assets/src/SqlLab/reducers/sqlLab.js +++ b/superset/assets/src/SqlLab/reducers/sqlLab.js @@ -164,7 +164,7 @@ export default function sqlLabReducer(state = {}, action) { progress: 100, results: action.results, rows, - state: 'rendering', + state: 'success', errorMessage: null, cached: false, };