amoghrajesh commented on code in PR #46860:
URL: https://github.com/apache/airflow/pull/46860#discussion_r1961750652
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/executors/kubernetes_executor.py:
##########
@@ -269,6 +275,27 @@ 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:
+ # TODO: AIP-72 remove once actual tokens are working.
+ if not w.token: # type: ignore[union-attr]
+ w.token = "placeholder-token" # type: ignore[union-attr]
Review Comment:
Oh yeah, its overriden as empty string anyways. I will remove it
--
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]