You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/10/31 08:51:31 UTC

[GitHub] [airflow] yuqian90 commented on issue #6392: [AIRFLOW-5648] Add ClearTaskOperator for clearing tasks in a DAG

yuqian90 commented on issue #6392: [AIRFLOW-5648] Add ClearTaskOperator for clearing tasks in a DAG
URL: https://github.com/apache/airflow/pull/6392#issuecomment-548270725
 
 
   Hoping to get some reviews here from committers. @kaxil @bolkedebruin any interest?
   
   The rationale:
   In an ideal world, we should not need `ClearTaskOperator` because all workflows should be **directed** and **acyclic** so we never have to rereun tasks that already completed. But in the real world, some workflows have portions that are cyclic. We sometimes need to revisit tasks that already completed earlier. 
   
   With `ClearTaskOperator`, we can model such workflows easily without making any changes to the core of Airflow or forcing users to revamp their workflow completely. It is in the same spirit as `ExternalTaskSensor` and `TriggerDagRunOperator` where a task is allowed to examine or control the state of other tasks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services