sdg9670f commented on issue #57743:
URL: https://github.com/apache/airflow/issues/57743#issuecomment-4189805366
I fixed it.
Convert the V1Pod object into a standard Python dictionary using the
.to_dict() method. This allows the API server to serialize the configuration
properly while maintaining full functionality for the executor.
```python
# Before (Causes UI Error)
executor_config = {
"pod_override": k8s.V1Pod(
spec=k8s.V1PodSpec(
# ... internal configurations ...
)
)
}
# After (Fixed)
executor_config = {
"pod_override": k8s.V1Pod(
spec=k8s.V1PodSpec(
# ... internal configurations ...
)
).to_dict() # Added .to_dict() for JSON serialization
}
```
--
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]