ubermen opened a new pull request #3667: [AIRFLOW-1298] Add clear option 'only_failed_or_upstream_failed' URL: https://github.com/apache/incubator-airflow/pull/3667 ### Description In my operations team, it is necessary to clear all tasks in one command line (because of so many schedules will be reprocessed) But, 'clear -cdf ...' is only clearing failed tasks without upstream_failed. It is not fit for our operator's needs. So, I want to add new options to clear failed or upstream_failed jobs all at once. ### Tests 1. clear only one schedule of this task : airflow clear -cp -s 2018-07-22T05:00:00 -e 2018-07-22T05:00:00 -t ^task_name$ schedule_name 2. clear only multiple schedules of this task : airflow clear -cp -s 2018-07-22T05:00:00 -e 2018-07-22T09:00:00 -t ^task_name$ schedule_name 3. clear multiple schedules of this task with downstream : airflow clear -cdp -s 2018-07-22T05:00:00 -e 2018-07-22T09:00:00 -t ^task_name$ schedule_name ### Documentation new option of clear command option is 'p' of upstream_failed's p character. Usage sample is like below : airflow clear -cdp -s 2018-07-22T05:00:00 -e 2018-07-22T09:00:00 -t ^task_name$ schedule_name
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
