Ashley Kent
09/25/2025, 10:11 AMMarvin
09/25/2025, 10:11 AMMarvin
09/25/2025, 10:14 AM0 10 1 * *
- By default, Prefect uses UTC unless you specify a timezone.
Two easy ways to set this up:
Option A — via CLI (Prefect 3.x)
prefect deploy ./path/to/flow.py:my_flow \
--name monthly-10am \
--cron "0 10 1 * *" \
--timezone "America/New_York"
- Omit --timezone
to run at 10:00 UTC.
- Run from your project root.
Option B — in Python when deploying
from prefect import flow
from prefect.schedules import Cron
@flow
def my_flow():
...
if __name__ == "__main__":
my_flow.deploy(
name="monthly-10am",
work_pool_name="my-pool",
schedule=Cron("0 10 1 * *", timezone="America/New_York"),
)
Docs for more details:
- Schedules (concepts)
- Schedule API
Do you want this to run in a specific timezone? If so, which one?