-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No grid auto-refresh for backfill dag runs #25042
No grid auto-refresh for backfill dag runs #25042
Conversation
HI @yingxuanwangxuan, can you an explanation in the PR description of what's being fixed and how this PR resolves the issue. It's not entirely clear without a description or a linked issue. |
Issue: #24844 Not sure about the CI failure. I'd say rebase the branch and see if it persists. |
Awesome work, congrats on your first merged pull request! |
* Update useGridData.ts * Update useGridData.test.js * Update useGridData.test.js (cherry picked from commit de6938e)
@@ -49,7 +49,7 @@ const emptyGridData: GridData = { | |||
}, | |||
}; | |||
|
|||
export const areActiveRuns = (runs: DagRun[] = []) => runs.filter((run) => ['queued', 'running', 'scheduled'].includes(run.state)).length > 0; | |||
export const areActiveRuns = (runs: DagRun[] = []) => runs.filter((run) => ['manual', 'manual'].includes(run.runType)).filter((run) => ['queued', 'running', 'scheduled'].includes(run.state)).length > 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surely this should be:
export const areActiveRuns = (runs: DagRun[] = []) => runs.filter((run) => ['scheduled', 'manual'].includes(run.runType)).filter((run) => ['queued', 'running', 'scheduled'].includes(run.state)).length > 0;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fix this. @bbovenzi can you review it again?
In PR apache#25042 the merged change included a bug that prevents the page from auto-refreshing if there are anything other than manual runs on the page. We also want to auto-refresh for scheduled runs. I've also added more complete unit tests for the expected behaviour.
In PR #25042 the merged change included a bug that prevents the page from auto-refreshing if there are anything other than manual runs on the page. We also want to auto-refresh for scheduled runs. I've also added more complete unit tests for the expected behaviour.
In PR apache#25042 the merged change included a bug that prevents the page from auto-refreshing if there are anything other than manual runs on the page. We also want to auto-refresh for scheduled runs. I've also added more complete unit tests for the expected behaviour. (cherry picked from commit 37ec752)
This reverts commit de6938e.
Don't run auto-refresh for backfill dag runs.
Closes: #24844
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.