Skip to content

Commit

Permalink
Check for queued states for dags autorefresh (apache#25695)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored Aug 12, 2022
1 parent 8dceaad commit 378dbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/static/js/dags.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ let refreshInterval;
function checkActiveRuns(json) {
// filter latest dag runs and check if there are still running dags
const activeRuns = Object.keys(json).filter((dagId) => {
const dagRuns = json[dagId].filter((s) => s.state === 'running').filter((r) => r.count > 0);
const dagRuns = json[dagId].filter(({ state }) => state === 'running' || state === 'queued').filter((r) => r.count > 0);
return (dagRuns.length > 0);
});
if (activeRuns.length === 0) {
Expand Down

0 comments on commit 378dbfb

Please sign in to comment.