Uh oh!
There was an error while loading. Please reload this page.
Add CLI support for bulk pause and resume of DAGs - #38265
Conversation
b9761e6 to
e5aa9acComparee5aa9ac to
0d6a43fCompare0d6a43f to
db3a942CompareUh oh!
There was an error while loading. Please reload this page.
509bf86 to
afa2bb6CompareUh oh!
There was an error while loading. Please reload this page.
afa2bb6 to
dc3bee0CompareUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
It seems like unpausing a single dag is now broken by this PR. I have not tested bulk pause/unpause but for one dag, it seems broken
Ok. It now errors when the dag is paused and you are pausing again. I think it should just exit without error if DAG is already paused
Apologies for the confusion, maybe raising an error for pausing an already paused dag (and vice versa) is indeed too aggressive - I'll try to come up with a fix later on. |
ephraimbuddy
commented
Mar 28, 2024
Added the change here: #38585. Take a look when you have time |
…sing (#40345) closes: #38834#38265 added bulk pause and resume of DAGs. However, this PR seems to reuse the cli util method that collects DAGs from the default dag folder but not from the metadata DB. Hence, this would cause the unpause command to fail on environments where the dag folder is missing.
…sing (#40345) closes: #38834#38265 added bulk pause and resume of DAGs. However, this PR seems to reuse the cli util method that collects DAGs from the default dag folder but not from the metadata DB. Hence, this would cause the unpause command to fail on environments where the dag folder is missing. (cherry picked from commit e3d62c3)
…sing (#40345) closes: #38834#38265 added bulk pause and resume of DAGs. However, this PR seems to reuse the cli util method that collects DAGs from the default dag folder but not from the metadata DB. Hence, this would cause the unpause command to fail on environments where the dag folder is missing. (cherry picked from commit e3d62c3)
…sing (apache#40345) closes: apache#38834apache#38265 added bulk pause and resume of DAGs. However, this PR seems to reuse the cli util method that collects DAGs from the default dag folder but not from the metadata DB. Hence, this would cause the unpause command to fail on environments where the dag folder is missing.
closes: #36956
This PR adds the ability for
airflow dags (un)pausecommands to treatdag_idas a regex (similar tobackfill), so we could apply it to multiple DAGs.^ 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.rstor{issue_number}.significant.rst, in newsfragments.