ashb commented on code in PR #46926:
URL: https://github.com/apache/airflow/pull/46926#discussion_r1965895978


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/executors/kubernetes_executor_utils.py:
##########
@@ -394,7 +394,7 @@ def run_next(self, next_job: KubernetesJobType) -> None:
 
             if isinstance(command[0], ExecuteTask):
                 workload = command[0]
-                ser_input = workload.model_dump_json()
+                ser_input = workload.model_dump_json(exclude={"ti": 
{"executor_config"}})

Review Comment:
   Please add a comment saying why we are doing this then. I agree it makes 
sense that we don't need to pass it in to the pod though.
   
   (FWIW ariflow.serialzation.serde's `serialize` function would handle this. 
But not passing it is the right call 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]

Reply via email to