ferruzzi commented on code in PR #55086:
URL: https://github.com/apache/airflow/pull/55086#discussion_r2320277212
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -1906,7 +1906,11 @@ def serialize_dag(cls, dag: SdkDag) -> dict:
serialized_dag["dag_dependencies"] = [x.__dict__ for x in
sorted(dag_deps)]
serialized_dag["task_group"] =
TaskGroupSerialization.serialize_task_group(dag.task_group)
- serialized_dag["deadline"] =
dag.deadline.serialize_deadline_alert() if dag.deadline else None
+ serialized_dag["deadline"] = (
+ [deadline.serialize_deadline_alert() for deadline in
dag.deadline]
+ if isinstance(dag.deadline, list)
+ else None
+ )
Review Comment:
Same below in deserialize
--
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]