Skip to main content

@schedule

The @schedule decorator specifies the times when the flow should be run when deployed to an external orchestrator like AWS Step Functions or Argo Workflows.

For more information, see Scheduling Metaflow Flows.

@schedule(...)

[source]

from metaflow import schedule

Specifies the times when the flow should be run when running on a production scheduler.

Parameters 

hourly: bool, default False

Run the workflow hourly.

daily: bool, default True

Run the workflow daily.

weekly: bool, default False

Run the workflow weekly.

cron: str, optional, default None

Run the workflow at a custom Cron schedule specified by this expression.

timezone: str, optional, default None

Timezone on which the schedule runs (default: None). Currently supported only for Argo workflows, which accepts timezones in IANA format.