eladkal commented on issue #43355:
URL: https://github.com/apache/airflow/issues/43355#issuecomment-2440030369

   When you are inside virtual env you are not in the context of Airflow. You 
can not use special Airflow classes with in. What you need to do is return 
specific error code and then use `skip_on_exit_code` parameter:
   
   
https://github.com/apache/airflow/blob/63ff22f4038f34354dc5807036d1bf10653c2ecd/airflow/operators/python.py#L674-L676
   
   Closing as this is not a bug. If you believe this is something that wasn't 
easy to understand please help us by raising PR to improve the docs.


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