Yes, you can limit Prefect automations to occur within a specific time frame such as between 1PM and 2PM. Prefect allows you to use schedules to automatically create new flow runs for deployments. Schedules tell the Prefect API how to create new flow runs for you automatically on a specified cadence. You can add a schedule to any flow deployment.
There are several recommended ways to create a schedule for a deployment:
- Through the Prefect UI
- Via the cron, interval, or rrule parameters if building your deployment via the serve method of the Flow object or the serve UI.
For more detailed information, you can refer to the Prefect documentation on
schedules and
automations.