tomplus opened a new issue, #47511:
URL: https://github.com/apache/airflow/issues/47511

   ### Apache Airflow version
   
   2.10.5
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   For some reason BranchPythonOperator reports warning:
   
   ```
   [2025-03-07, 18:13:18 UTC] {local_task_job_runner.py:123} ▶ Pre task 
execution logs
   [2025-03-07, 18:13:19 UTC] {baseoperator.py:424} WARNING - 
BranchPythonOperator.execute cannot be called outside TaskInstance!
   [2025-03-07, 18:13:19 UTC] {python.py:240} INFO - Done. Returned value was: 
branch_b
   [2025-03-07, 18:13:19 UTC] {branch.py:38} INFO - Branch into branch_b
   [2025-03-07, 18:13:19 UTC] {skipmixin.py:233} INFO - Following branch 
('branch_b',)
   [2025-03-07, 18:13:19 UTC] {skipmixin.py:281} INFO - Skipping tasks 
[('branch_c', -1), ('branch_d', -1), ('branch_a', -1)]
   [2025-03-07, 18:13:19 UTC] {taskinstance.py:341} ▶ Post task execution logs
   ```
   
   it's from example_branch_operator.
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Run example 'example_branch_operator'.
   
   ### Operating System
   
   Ubuntu 22
   
   ### Versions of Apache Airflow Providers
   
   It's a fresh installation (pip install airflow)
   
   ### Deployment
   
   Virtualenv installation
   
   ### 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]

Reply via email to