ferruzzi commented on code in PR #71767:
URL: https://github.com/apache/airflow/pull/71767#discussion_r3963357730
##########
airflow-core/src/airflow/serialization/definitions/dag.py:
##########
@@ -789,6 +789,18 @@ def _process_dagrun_deadline_alerts(
"deadline_alerts.deadline_created",
tags=prune_dict({"dag_id": self.dag_id, "team_name":
team_name}),
)
+ elif required_dagrun_column := {
+ SerializedReferenceModels.DagRunLogicalDateDeadline:
"logical_date",
+ SerializedReferenceModels.DagRunQueuedAtDeadline:
"queued_at",
+ }.get(type(deserialized_deadline_alert.reference)):
Review Comment:
Nit, only if you are making other changes: May as well move this dict into
a module-level constant, no?
--
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]