The GitHub Actions job "Tests" on 
airflow.git/fix/virtualenv-supervisor-comms-propagation has succeeded.
Run started by GitHub user andreahlert (triggered by andreahlert).

Head commit for run:
8df3ae494c0f0929221cf87928b9fa5c829042a5 / AndrĂ© Ahlert <[email protected]>
Fix PythonVirtualenvOperator failing to access Variables/Connections in Airflow 
3.x

In the normal forked execution path, the supervisor communicates with
the task process via fd 0 (stdin), but __AIRFLOW_SUPERVISOR_FD env var
is never set. When PythonVirtualenvOperator launches a subprocess via
Popen, the virtualenv process cannot re-establish supervisor comms,
causing Variable.get() and Connection.get() to fail silently.

This fix explicitly detects the SUPERVISOR_COMMS socket fd in the
operator and propagates it via __AIRFLOW_SUPERVISOR_FD to the
subprocess. It also hardens the virtualenv script template to catch
ImportError (not just ModuleNotFoundError) and wraps
reinit_supervisor_comms() in try/except to prevent script crashes.

Closes: #58724

Report URL: https://github.com/apache/airflow/actions/runs/21796463975

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to