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


##########
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:
   All good! It does the trick
   
   ```python
   mine = (
       *SerializedReferenceModels.TYPES.DAGRUN_CREATED,
       *SerializedReferenceModels.TYPES.DAGRUN_QUEUED,
       SerializedReferenceModels.SerializedCustomReference,
   )
   mine
   Out[7]: 
   
(airflow.serialization.definitions.deadline.SerializedReferenceModels.DagRunLogicalDateDeadline,
    
airflow.serialization.definitions.deadline.SerializedReferenceModels.FixedDatetimeDeadline,
    
airflow.serialization.definitions.deadline.SerializedReferenceModels.AverageRuntimeDeadline,
    
airflow.serialization.definitions.deadline.SerializedReferenceModels.DagRunQueuedAtDeadline,
    
airflow.serialization.definitions.deadline.SerializedReferenceModels.SerializedCustomReference)
   mine == SerializedReferenceModels.TYPES.DAGRUN
   Out[8]: True
   ```



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