Repository navigation
UI: Add bulk pause, drain and unpause actions to the Dags list - #73055
Conversation
3c3cdcd to
5f72066
Compare
5f72066 to
9834101
Compare
16feca7 to
2a8cd36
Compare
|
@bbovenzi, it would be great to get your opinion on this. This is needed for drain feature to be feature complete intime for 3.4.0 |
2a8cd36 to
78d8c41
Compare
78d8c41 to
6e59a8a
Compare
Draining a Dag with unfinished runs now asks whether to drain or pause immediately, which turned stopping many Dags into two clicks per Dag instead of one. Selecting several Dags in the table view and pausing or draining them together needs at most one such choice for the whole batch. Follow-up to the draining state added in apache#72407. related: apache#22006
The bulk action in the Dags list is part of the graceful draining feature, so the release note should credit it alongside the core and airflowctl changes.
Draining clears is_paused, so a paused Dag caught up in a bulk drain let the scheduler resume its unfinished runs until the drain completed, the opposite of what the user asked for. Such Dags also forced the drain-vs-pause prompt even when every unpaused Dag in the selection was idle.
A selection could be paused or drained in one go but had to be resumed one toggle at a time. Unpausing always asks for confirmation because resuming many Dags at once can start a burst of catchup runs.
6e59a8a to
c43837f
Compare
|
@bbovenzi , I also updated the PR to also unpause the dags aswell. That was missing in my original implementation |
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 18fe1c6 v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 18fe1c6 airflow-ctl/v0-1-testThis should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
Adds bulk scheduling actions to the Dags list table view: select rows with the new checkbox column, then pause/drain or unpause them all at once instead of flipping each Dag's toggle.
Each button is disabled when it would change nothing for the current selection.
Follow-up to #72407, which added the draining state and the per-Dag drain-vs-pause choice this PR collapses down to one click for a whole selection.
related: #22006
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Claude Sonnet 5, Claude Opus 5.5) following the guidelines