<@ULVA73B9P> Hi ai, does Prefect 2.15 supports end...
# marvin-ai
m
@Marvin Hi ai, does Prefect 2.15 supports end_date under schedule cron?
m
thought for 61.0 seconds
Short answer: no — Prefect 2.15 does not support
end_date
on a
CronSchedule
. In Prefect 2.15, cron schedules support: -
cron
-
timezone
-
day_or
They do not include an
end_date
field. If you need a schedule that stops after a certain date, use an RRule schedule instead, with
UNTIL
in the recurrence rule. Example:
Copy code
python
from prefect.client.schemas.schedules import RRuleSchedule

schedule = RRuleSchedule(
    rrule="FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR;UNTIL=20240730T040000Z",
    timezone="America/New_York",
)
Relevant references: - Prefect 2.15
CronSchedule
schema: CronSchedule source - Prefect 2.15
RRuleSchedule
schema: RRuleSchedule source - Scheduling docs: Prefect schedules docs If you want, I can also help translate your cron expression into an equivalent
RRuleSchedule
.