GitHub user pykenny edited a comment on the discussion: Add New trigger rule "all_done_min_one_fail"
To use setup/teardown context, all the tasks in between the context should all apply "ALL_SUCCESS" trigger rule: https://airflow.apache.org/docs/apache-airflow/stable/howto/setup-and-teardown.html#implicit-all-success-constraint So if the pipeline involves with more sophisticated trigger logic, then consider [dominikhei](https://github.com/apache/airflow/discussions/53530#discussioncomment-13816434)'s solution, and implement some mechanism to check out upstream result (e.g. using XCom to transfer upstream result, where "`None` output/no XCom push" may imply task failure). [Astronomer's post](https://www.astronomer.io/blog/understanding-airflow-trigger-rules-comprehensive-visual-guide/#:~:text=Trigger%20rule%20all_done) also presents a nice example of using "ALL_DONE" rule. GitHub link: https://github.com/apache/airflow/discussions/53530#discussioncomment-13822471 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
