ephraimbuddy commented on code in PR #46860:
URL: https://github.com/apache/airflow/pull/46860#discussion_r1959614164
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py:
##########
@@ -389,7 +390,16 @@ def run_next(self, next_job: KubernetesJobType) -> None:
dag_id, task_id, run_id, try_number, map_index = key
- if command[0:3] != ["airflow", "tasks", "run"]:
+ if len(command) == 1 and isinstance(command[0], ExecuteTask):
+ workload = command[0]
+ ser_input = workload.model_dump_json()
Review Comment:
this ser_input was used in pod contructor but hidden under an if statement.
Maybe we should initialize it outside the if statement and update it here.
--
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]