amoghrajesh commented on code in PR #46926:
URL: https://github.com/apache/airflow/pull/46926#discussion_r1965534520
##########
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:
`executor_config` is of `k8s.V1Pod` type. We need to exclude it from the
serialisation entirely because pydantic doesnt know how to serialise
`k8s.V1Pod` types. A few lines later, it is passed onto the `construct_pod`
--
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]