yershovkiril opened a new issue, #54340:
URL: https://github.com/apache/airflow/issues/54340
### Apache Airflow version
3.0.4
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Previously (before 3.0.4) when BranchPythonOperator callable returned None
(or any falsy value) downstream task would be marked as skipped, but this
behavior is broken in 3.0.4 and fail pipeline with:
`AirflowException: 'branch_task_ids' expected all task IDs are strings.
Invalid tasks found: {(None, 'NoneType')}.`
https://github.com/apache/airflow/pull/53431/files - I believe this change
has brought an issue
### What you think should happen instead?
We should skip downstream tasks as it used to be, even in tutorial None-s
are part of the example -
https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dags.html#branching
### How to reproduce
Use callable with return None for branching task
### Operating System
Ubuntu 20.04.6 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]