mathbou opened a new pull request, #30367:
URL: https://github.com/apache/airflow/pull/30367
**Context:**
- An Airflow instance (2.5.2) with debug logging level
- A Dag with an `ExternalPythonOperator` or `PythonVirtualenvOperator` task
---
In the upper context, the task fails to retrieve the Airflow context, and
this line appears in the task log:
> [2023-03-30, 10:15:17 CEST] {python.py:711} WARNING - When checking for
Airflow installed in venv got The version of Airflow installed for the
/venvs/shotgun/bin/python([2023-03-30T08:15:17.222+0000] {settings.py:267}
DEBUG - Setting up DB connection pool (PID 241)
It appears that the result of the following call contains log outputs from
the worker:
https://github.com/apache/airflow/blob/6e751812d2e48b743ae1bc375e3bebb8414b4a0e/airflow/operators/python.py#L695-L697
<!--
Thank you for contributing! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
Feel free to ping committers for the review!
In case of an existing issue, reference it using one of the following:
closes: #ISSUE
related: #ISSUE
How to write a good git commit message:
http://chris.beams.io/posts/git-commit/
-->
--
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]