eladkal commented on code in PR #64644:
URL: https://github.com/apache/airflow/pull/64644#discussion_r3052753951


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py:
##########
@@ -128,6 +128,17 @@ def get_timetable_summary(cls, tts: str | None) -> str | 
None:
             return None
         return str(tts)
 
+    _NON_BACKFILLABLE_SUMMARIES: frozenset[str | None] = frozenset(
+        {None, "@once", "@continuous", "Asset", "Partitioned Asset"}
+    )
+
+    # Mypy issue https://github.com/python/mypy/issues/1362
+    @computed_field  # type: ignore[prop-decorator]
+    @property
+    def is_backfillable(self) -> bool:
+        """Whether this DAG's schedule supports backfilling."""
+        return self.timetable_summary not in self._NON_BACKFILLABLE_SUMMARIES

Review Comment:
   Correct me if I am wrong but I think this can be confusing given also 
`allowed_run_types` which was added in 
https://github.com/apache/airflow/pull/61833/
   



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