kaxil commented on code in PR #34042:
URL: https://github.com/apache/airflow/pull/34042#discussion_r1314334386


##########
airflow/serialization/serialized_objects.py:
##########
@@ -438,7 +438,7 @@ def serialize(
             json_pod = PodGenerator.serialize_pod(var)
             return cls._encode(json_pod, type_=DAT.POD)
         elif isinstance(var, DAG):
-            return SerializedDAG.serialize_dag(var)
+            return cls._encode(SerializedDAG.serialize_dag(var), type_=DAT.DAG)

Review Comment:
   When building DAG s10n it was designed to using Airflow internal knowledge 
to not inflate the final blob and optimize wherever possible. This is the 
reason we don't store defaults and objects that are None for DAG and operator 
objects



-- 
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