<@ULVA73B9P> for the schedule schedules: - inter...
# marvin-ai
k
@Marvin for the schedule schedules: - interval: 1800.0 anchor_date: '2025-09-09T073000.00000+00:00' timezone: UTC active: false i want to change this schedule and set this to once per day help me write the correct syntax for this it should run once per day
m
thought for 191.1 seconds
Got it. In Prefect 3.x you can express “once per day” either as: - an interval of 24 hours (runs every 24h from an anchor), or - a cron expression (runs at a specific clock time each day). Since your current config includes an anchor at 07:30 UTC, here are two correct options. Option A — Daily at 07:30 UTC (cron; best for “same local time” semantics)
Copy code
schedules:
  - cron: "30 7 * * *"
    timezone: "UTC"
    active: true
Option B — Every 24 hours anchored at 07:30 UTC (interval)
Copy code
schedules:
  - interval: 86400
    anchor_date: "2025-09-09T07:30:00Z"
    timezone: "UTC"
    active: true
Quick notes: - If you want a different time of day, I can adjust the cron (e.g., “0 0 * * *” for midnight) or the anchor date. - With UTC, DST isn’t a concern. In DST-observing timezones, prefer cron to keep a consistent local clock time. Docs for reference: - Schedules concepts (Prefect 3) - prefect.yaml and schedules Would you like this to run at 07:30 UTC each day, or a different time?
k
no you can ignore the anchor date and keep it like a daily cron which run at UTC
@Marvin no you can ignore the anchor date and keep it like a daily cron which run at UTC
m
thought for 10.0 seconds
Great — using a daily cron in UTC, here’s the syntax. If you want midnight UTC each day:
Copy code
schedules:
  - cron: "0 0 * * *"
    timezone: "UTC"
    active: true
If you want 07:30 UTC each day:
Copy code
schedules:
  - cron: "30 7 * * *"
    timezone: "UTC"
    active: true
What time should it run each day in UTC? Refs: - Schedules concepts - prefect.yaml and schedules