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


##########
airflow-core/src/airflow/models/base.py:
##########
@@ -98,3 +99,14 @@ class TaskInstanceDependencies(Base):
     dag_id: Mapped[str] = mapped_column(StringID(), nullable=False)
     run_id: Mapped[str] = mapped_column(StringID(), nullable=False)
     map_index: Mapped[int] = mapped_column(Integer, nullable=False, 
server_default=text("-1"))
+
+
+def has_execution_context() -> bool:

Review Comment:
   Yeah `_AIRFLOW_PROCESS_CONTEXT` that accepts client / server
   
   
https://github.com/apache/airflow/blob/e36e6caa344a216b514030d8d068028e6f770398/task-sdk/src/airflow/sdk/execution_time/supervisor.py#L1939-L1942\
   
   
https://github.com/apache/airflow/blob/e36e6caa344a216b514030d8d068028e6f770398/airflow-core/src/airflow/dag_processing/processor.py#L181-L183



##########
airflow-core/src/airflow/models/base.py:
##########
@@ -98,3 +99,14 @@ class TaskInstanceDependencies(Base):
     dag_id: Mapped[str] = mapped_column(StringID(), nullable=False)
     run_id: Mapped[str] = mapped_column(StringID(), nullable=False)
     map_index: Mapped[int] = mapped_column(Integer, nullable=False, 
server_default=text("-1"))
+
+
+def has_execution_context() -> bool:

Review Comment:
   Yeah `_AIRFLOW_PROCESS_CONTEXT` that accepts client / server
   
   
https://github.com/apache/airflow/blob/e36e6caa344a216b514030d8d068028e6f770398/task-sdk/src/airflow/sdk/execution_time/supervisor.py#L1939-L1942
   
   
https://github.com/apache/airflow/blob/e36e6caa344a216b514030d8d068028e6f770398/airflow-core/src/airflow/dag_processing/processor.py#L181-L183



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