mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
fix(sqllab): Add threshold for checking inactive queries (#24536)
Co-authored-by: Justin Park <justinpark@apache.org>
This commit is contained in:
@@ -92,7 +92,7 @@ function QueryAutoRefresh({
|
||||
}, {}) ?? {};
|
||||
dispatch(refreshQueries(queries));
|
||||
} else {
|
||||
dispatch(clearInactiveQueries());
|
||||
dispatch(clearInactiveQueries(QUERY_UPDATE_FREQ));
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -102,7 +102,7 @@ function QueryAutoRefresh({
|
||||
});
|
||||
}
|
||||
if (!cleanInactiveRequestRef.current && !shouldRequestChecking) {
|
||||
dispatch(clearInactiveQueries());
|
||||
dispatch(clearInactiveQueries(QUERY_UPDATE_FREQ));
|
||||
cleanInactiveRequestRef.current = true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user