shahar1 commented on issue #40620: URL: https://github.com/apache/airflow/issues/40620#issuecomment-2254550680
The interaction between the trigger rule `none_failed` and skipped tasks [is not well defined in the docs](https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dags.html#trigger-rules), as only `all_success` and `alll_failed` are mentioned. However, following the example in the docs, which sets a trigger rule to a downstream task of a skipped branch - we could conclude that defining trigger rules for tasks overcomes the behavior of `BranchPythonOperator`. Thus, the behavior that you presented is expected. I agree, though, that this behavior should be clarified (or maybe even revised). You're welcome to create a PR for adding this exact example to the docs. I'm closing this issue, but feel free to create a new one if you need (this issue was very comfortable to reproduce). -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
