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 2020/06/23 18:00:32 UTC

[GitHub] [airflow] panas2567 commented on pull request #5288: AIRFLOW-4512 - New trigger rule for tasks - At least one successful

panas2567 commented on pull request #5288:
URL: https://github.com/apache/airflow/pull/5288#issuecomment-648324441


   > Hello,
   > Is there any method to achieve the goal of atleast_one_success ?
   > As I would need this behaviour in one of my DAG.
   > Thanks,
   
   Create two mid tasks: 
   _check_one_success_ with trigger rule one_success 
   _check_all_done_ with trigger rule all_done
   Then joining like:
   [task1, task2, ..., taskN] >> check_one_success >> task_with_trigger_rule_at_least_one_success
   [task1, task2, ..., taskN] >> check_all_done >> task_with_trigger_rule_at_least_one_success


----------------------------------------------------------------
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