SameerMesiah97 commented on code in PR #71802:
URL: https://github.com/apache/airflow/pull/71802#discussion_r3866585767


##########
airflow-core/src/airflow/serialization/definitions/deadline.py:
##########
@@ -380,11 +378,35 @@ def _fetch_from_db(column, *, session: Session, dag_id: 
str, run_id: str) -> dat
     return result
 
 
[email protected](frozen=True)
+class SerializedVariableInterval:
+    """Core-side serialized representation of a variable-backed deadline 
interval."""
+
+    key: str
+
+    def resolve(self) -> timedelta:
+        from airflow.models.variable import Variable
+
+        try:
+            value = Variable.get(self.key)
+        except KeyError as e:

Review Comment:
   I have left as is as it seems like `AirflowRuntimeError` can no longer arise 
via this path.



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