-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-5560] Allow no confirmation on reset dags #6195
Conversation
is there a reason to suppress it as not everyone is familiar with this input arg? this will provide a safety guard to allow users know what will get clear during backfill. |
Yes when running the command from a |
Codecov Report
@@ Coverage Diff @@
## v1-10-stable #6195 +/- ##
================================================
- Coverage 76.53% 76.52% -0.01%
================================================
Files 509 509
Lines 34352 34352
================================================
- Hits 26291 26289 -2
- Misses 8061 8063 +2
Continue to review full report at Codecov.
|
ok, but the flag name is too generic, |
I only chose https://github.com/apache/airflow/blob/master/airflow/bin/cli.py#L1711 But I would be happy to change it to whatever you guys can agree on as long as its consistent Note that the PR for master also updates clear to also use |
|
Oh and |
Any conclusion on this? |
Taking silence as assent :) |
Make sure you have checked all steps below.
Jira
Description
When using the backfill command with the
--reset_dags
option there is a confirmation prompt and no way to suppress it. I've wired in the--yes
parameter to do this, note that using--no_confirm
wasn't an option as thats aliased to '-c' which is used for--conf
in the backfill sub command.Tests
No tests for command line arguments, tested locally though.
Commits
Documentation
In case of new functionality, my PR adds documentation that describes how to use it.
Done automatically via argparse