Skip to content

Commit 7e50982

Browse files
committed
🩹🔧 fix: Use CronTriggerTimetable to schedule promptbolus once a month
1 parent 8ee117d commit 7e50982

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dags/enriched_promptbolus.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import pendulum
99
from airflow import DAG
10+
from airflow.timetables.trigger import CronTriggerTimetable
1011
from airflow.utils.task_group import TaskGroup
1112
from airflow.utils.trigger_rule import TriggerRule
1213

@@ -52,7 +53,7 @@
5253
dag_id="enriched_promptbolus",
5354
doc_md=DOC,
5455
start_date=datetime(2025, 3, 1, 8, tzinfo=pendulum.timezone("America/Montreal")),
55-
schedule_interval="0 7 1-7 * 2", # First tuesday of the month at 7:00 AM
56+
schedule="0 7 * * 2#1", # First tuesday of the month at 7:00 AM
5657
params=params,
5758
dagrun_timeout=timedelta(hours=default_timeout_hours),
5859
default_args=args,

0 commit comments

Comments
 (0)