uranusjr commented on code in PR #61461:
URL: https://github.com/apache/airflow/pull/61461#discussion_r2870768056


##########
airflow-core/src/airflow/serialization/definitions/deadline.py:
##########
@@ -259,7 +310,9 @@ class TYPES:
 )
 SerializedReferenceModels.TYPES.DAGRUN_QUEUED = 
(SerializedReferenceModels.DagRunQueuedAtDeadline,)
 SerializedReferenceModels.TYPES.DAGRUN = (
-    SerializedReferenceModels.TYPES.DAGRUN_CREATED + 
SerializedReferenceModels.TYPES.DAGRUN_QUEUED
+    SerializedReferenceModels.TYPES.DAGRUN_CREATED
+    + SerializedReferenceModels.TYPES.DAGRUN_QUEUED
+    + (SerializedReferenceModels.SerializedCustomReference,)
 )

Review Comment:
   Not sure if this would work
   
   ```python
   SerializedReferenceModels.TYPES.DAGRUN = (
       *SerializedReferenceModels.TYPES.DAGRUN_CREATED,
       *SerializedReferenceModels.TYPES.DAGRUN_QUEUED,
       SerializedReferenceModels.SerializedCustomReference,
   )
   ```
   
   Slightly more readable to me if it does.



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