Piotr
07/16/2025, 6:17 AMMarvin
07/16/2025, 6:17 AMMarvin
07/16/2025, 6:18 AMpython
from prefect import flow
from prefect.schedules import Cron
@flow
def my_flow():
    print("Running flow!")
# Create deployment with timezone-aware cron
deployment = my_flow.to_deployment(
    name="my-scheduled-deployment",
    schedule=Cron(
        cron="0 9 * * *",  # Runs at 9 AM in the specified timezone
        timezone="America/New_York"  # Specify your desired timezone
    )
)
# Deploy the deployment
deployment.deploy()timezoneCronAmerica/New_YorkAmerica/Los_AngelesEurope/LondonAsia/TokyoUTC