uranusjr commented on code in PR #55169:
URL: https://github.com/apache/airflow/pull/55169#discussion_r2318379014
##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -2322,10 +2335,15 @@ class SerializedDAG(DAG, BaseSerialization):
_decorated_fields: ClassVar[set[str]] = {"default_args", "access_control"}
- last_loaded: datetime.datetime | None = attrs.field(init=False,
factory=utcnow)
+ # TODO (GH-52141): These should contain serialized containers, but
currently
+ # this class inherits from an SDK one.
+ task_group: SerializedTaskGroup # type: ignore[assignment]
+ task_dict: dict[str, SerializedBaseOperator | SerializedMappedOperator] #
type: ignore[assignment]
+
+ last_loaded: datetime.datetime
# this will only be set at serialization time
# it's only use is for determining the relative fileloc based only on the
serialize dag
- _processor_dags_folder: str = attrs.field(init=False)
Review Comment:
Yes I moved the init code to `__init__` (since this class does not use attrs
anymore)
--
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]