amoghrajesh commented on code in PR #46860:
URL: https://github.com/apache/airflow/pull/46860#discussion_r1960996857


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py:
##########
@@ -269,6 +275,26 @@ def execute_async(
         # try and remove it from the QUEUED state while we process it
         self.last_handled[key] = time.time()
 
+    def queue_workload(self, workload: workloads.ExecuteTask, session: Session 
| None) -> None:
+        ti = workload.ti
+        self.queued_tasks[ti.key] = workload
+
+    def _process_workloads(self, workloads: list[workloads.All]) -> None:
+        # Airflow V3 version
+        for w in workloads:
+            if not w.token:
+                w.token = "placeholder-token"
+            command = [w]
+            key = w.ti.key
+            queue = w.ti.queue
+
+            # TODO: setting to empty for now, needs to be revisited
+            executor_config = {}  # type: ignore[var-annotated]

Review Comment:
   Probably we need to extend the `ExecuteTask` interface to start supporting 
this. I need to investigate a little more but I was planning on coming back to 
this once the basic functionality worked.



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