jscheffl commented on code in PR #59876:
URL: https://github.com/apache/airflow/pull/59876#discussion_r2655577583


##########
airflow-core/src/airflow/models/connection.py:
##########
@@ -505,7 +504,9 @@ def get_connection_from_secrets(cls, conn_id: str) -> 
Connection:
 
         # If this is set it means are in some kind of execution context (Task, 
Dag Parse or Triggerer perhaps)
         # and should use the Task SDK API server path
-        if hasattr(sys.modules.get("airflow.sdk.execution_time.task_runner"), 
"SUPERVISOR_COMMS"):
+        from airflow.sdk.execution_time.task_runner import 
is_supervisor_comms_initialized

Review Comment:
   Okay, have reverted/adjusted to previous state - as it was repeated 
Copy&Paste have moved it into a utility in 
https://github.com/apache/airflow/pull/59876/changes#diff-7694d13e2f87c84d20b0b8b44797bf96d754ae270204217e518082decc74649bR104



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