Dev-iL commented on code in PR #64644:
URL: https://github.com/apache/airflow/pull/64644#discussion_r3030403958


##########
airflow-core/src/airflow/models/backfill.py:
##########
@@ -284,11 +290,10 @@ def _do_dry_run(
     dag = serdag.dag
     _validate_backfill_params(dag, reverse, from_date, to_date, 
reprocess_behavior)
 
-    no_schedule = session.scalar(
-        select(func.count()).where(DagModel.timetable_summary == "None", 
DagModel.dag_id == dag_id)
-    )
-    if no_schedule:
-        raise DagNoScheduleException(f"{dag_id} has no schedule")
+    if not dag.timetable.periodic:
+        raise DagNonPeriodicScheduleException(
+            f"{dag_id} has a non-periodic schedule that does not support 
backfills"
+        )

Review Comment:
   Fixed.



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