o-nikolas commented on code in PR #48699:
URL: https://github.com/apache/airflow/pull/48699#discussion_r2025205814
##########
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]
+ workload = workloads.ExecuteTask.make(
+ ti,
+ dag_rel_path=Path(self.fileloc),
+ generator=executor.jwt_generator,
+ # For the system test/debug purpose, we use
the default bundle which uses
+ # local file system. If it turns out to be a
feature people want, we could
+ # plumb the Bundle to use as a parameter to
dag.test
+ bundle_info=BundleInfo(name="dags-folder"),
Review Comment:
@jedcunningham The relevant piece you and I were chatting about the other day
--
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]