o-nikolas commented on code in PR #48699:
URL: https://github.com/apache/airflow/pull/48699#discussion_r2025206469


##########
airflow-core/src/airflow/models/dag.py:
##########
@@ -1727,8 +1729,26 @@ def add_logger_if_needed(ti: TaskInstance):
                     if use_executor:
                         if executor.has_task(ti):
                             continue
-                        # Send the task to the executor
-                        executor.queue_task_instance(ti, ignore_ti_state=True)
+                        # TODO: Task-SDK: This check is transitionary. Remove 
once all executors are ported over.
+                        from airflow.executors import workloads
+                        from airflow.executors.base_executor import 
BaseExecutor
+
+                        if executor.queue_workload.__func__ is not 
BaseExecutor.queue_workload:  # type: ignore[attr-defined]

Review Comment:
   This piece is lifted from the scheduler (as much of dag.test code is).



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