potiuk commented on code in PR #24478:
URL: https://github.com/apache/airflow/pull/24478#discussion_r898275293


##########
airflow/utils/json.py:
##########
@@ -81,6 +81,9 @@ def _default(obj):
         elif k8s is not None and isinstance(obj, (k8s.V1Pod, 
k8s.V1ResourceRequirements)):
             from airflow.kubernetes.pod_generator import PodGenerator
 
-            return PodGenerator.serialize_pod(obj)
+            try:
+                return PodGenerator.serialize_pod(obj)
+            except Exception:

Review Comment:
   I think it makes sense to  log a warning 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