You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vperron (via GitHub)" <gi...@apache.org> on 2026/03/16 14:59:33 UTC
Re: [I] Couldn't able to access Airflow variables inside @task.virtualenv operator [airflow]
vperron commented on issue #51422:
URL: https://github.com/apache/airflow/issues/51422#issuecomment-4068304878
This bug still seems to exist in a different form, no crash but indefinitely hangs.
Exactly the same conditions as @spirkaa , Airflow 3.1.7.
Inside @task.virtualenv:
```python
@task.virtualenv(
requirements="requirements/tasks/requirements.txt",
system_site_packages=False,
venv_cache_path="/tmp/",
retries=1,
)
def import_data():
from airflow.sdk import Connection
pg_conn = Connection.get(conn_id="pg") # hangs forever
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org