mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(sqllab): Add threshold for checking inactive queries (#24536)
Co-authored-by: Justin Park <justinpark@apache.org>
This commit is contained in:
@@ -647,6 +647,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
Object.entries(queries).filter(([, query]) => {
|
||||
if (
|
||||
['running', 'pending'].includes(query.state) &&
|
||||
Date.now() - query.startDttm > action.interval &&
|
||||
query.progress === 0
|
||||
) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user