This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-7-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit b3a0df058e94c612b639121d20bbb400682480fd
Author: Daniel Standish <15932138+dstand...@users.noreply.github.com>
AuthorDate: Tue Oct 3 21:25:30 2023 -0700

    Fix typo re schedule vs schedule_interval (#34743)
    
    Now, typically, the "schedule interval" expression would be passed via 
param "schedule" since "schedule_interval" was deprecated.  So we should not 
use the underscore here (which is a remnant of the old var name) but just use 
either "interval" or "schedule interval", thus referring either to the concept 
(and not the param name) or the actual local function argument.
    
    (cherry picked from commit 08bfa08273822ce18e01f70f9929130735022583)
---
 airflow/models/dag.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/models/dag.py b/airflow/models/dag.py
index 3e27b6a795..cf2cf60658 100644
--- a/airflow/models/dag.py
+++ b/airflow/models/dag.py
@@ -222,7 +222,7 @@ def create_timetable(interval: ScheduleIntervalArg, 
timezone: Timezone) -> Timet
         return DeltaDataIntervalTimetable(interval)
     if isinstance(interval, str):
         return CronDataIntervalTimetable(interval, timezone)
-    raise ValueError(f"{interval!r} is not a valid schedule_interval.")
+    raise ValueError(f"{interval!r} is not a valid interval.")
 
 
 def get_last_dagrun(dag_id, session, include_externally_triggered=False):

Reply via email to