From 0cd5928c4f8f99318f08d4c8d9a9d7d151262985 Mon Sep 17 00:00:00 2001 From: abhishek bafna Date: Thu, 10 Sep 2020 21:10:50 +0530 Subject: [PATCH] [CP][AIRFLOW-5560][EWT-480]: Allow no confirmation on reset dags in `airflow backfill` command. (#58) CP of 8aa7a01 --- airflow/bin/cli.py | 4 ++-- airflow/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/airflow/bin/cli.py b/airflow/bin/cli.py index fa74a3a9d8acd7..06d5a8ad0ca888 100644 --- a/airflow/bin/cli.py +++ b/airflow/bin/cli.py @@ -197,7 +197,7 @@ def backfill(args, dag=None): [dag], start_date=args.start_date, end_date=args.end_date, - confirm_prompt=True, + confirm_prompt=not args.yes, include_subdags=False, ) @@ -1952,7 +1952,7 @@ class CLIFactory(object): " within the backfill date range.", 'args': ( 'dag_id', 'task_regex', 'start_date', 'end_date', - 'mark_success', 'local', 'donot_pickle', + 'mark_success', 'local', 'donot_pickle', 'yes', 'bf_ignore_dependencies', 'bf_ignore_first_depends_on_past', 'subdir', 'pool', 'delay_on_limit', 'dry_run', 'verbose', 'conf', 'reset_dag_run', 'rerun_failed_tasks', 'run_backwards' diff --git a/airflow/version.py b/airflow/version.py index fbb5fcc38e90c7..038a1058dcdffa 100644 --- a/airflow/version.py +++ b/airflow/version.py @@ -18,5 +18,5 @@ # under the License. # -version = '1.10.4+twtr17' +version = '1.10.4+twtr18'