uranusjr commented on code in PR #57472:
URL: https://github.com/apache/airflow/pull/57472#discussion_r2472225201


##########
providers/standard/src/airflow/providers/standard/utils/python_virtualenv_script.jinja2:
##########
@@ -47,7 +47,15 @@ else:
   {#- We are in an Airflow 3.x env, try and set up supervisor comms so virtual 
env can still access tasks etc! #}
   reinit_supervisor_comms = getattr(task_runner, "reinit_supervisor_comms", 
None)
   if reinit_supervisor_comms:
-      reinit_supervisor_comms()
+      try:
+          reinit_supervisor_comms()
+      except OSError as e:
+          if e.errno == 88:  # Socket operation on non-socket

Review Comment:
   Ah this value is actually different depending on the system. We should 
definitely use the errno constant instead of a literal 88.



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