Skip to content

Commit

Permalink
[sql lab] allow stoping 'pending' queries (apache#4896)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and michellethomas committed May 23, 2018
1 parent 2d86443 commit 6447224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/src/SqlLab/components/SqlEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class SqlEditor extends React.PureComponent {
this.props.actions.setActiveSouthPaneTab('Results');
}
stopQuery() {
if (this.props.latestQuery && this.props.latestQuery.state === 'running') {
if (this.props.latestQuery && ['running', 'pending'].indexOf(this.props.latestQuery.state) >= 0) {
this.props.actions.postStopQuery(this.props.latestQuery);
}
}
Expand Down

0 comments on commit 6447224

Please sign in to comment.