mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: prevent race condition when canceling query (#11449)
This commit is contained in:
parent
f918ca14aa
commit
1d9d905497
@ -324,6 +324,10 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
});
|
||||
},
|
||||
[actions.QUERY_SUCCESS]() {
|
||||
// prevent race condition were query succeeds shortly after being canceled
|
||||
if (action.query.state === 'stopped') {
|
||||
return state;
|
||||
}
|
||||
const alts = {
|
||||
endDttm: now(),
|
||||
progress: 100,
|
||||
|
Loading…
Reference in New Issue
Block a user