@Marvin I want a prefect flow to run every 5 minutes between the hours of 9am and 5pm, can I set that type of schedule using an interval schedule in my prefect.yaml file?
m
Marvin
08/22/2024, 3:35 PM
It looks like using an interval schedule directly in the
prefect.yaml
file for such specific timing (e.g., every 5 minutes between 9 AM and 5 PM) is not very straightforward with the
interval
keyword alone. However, you can accomplish this using a
cron
schedule.
Here’s an example of how you can define this schedule in your
restricts this to the hours from 9 AM to 4:59 PM.
Here's a link to more information on Prefect schedules: Prefect Schedules Documentation
If you have further questions, feel free to ask!
t
Thomas DeBroux
08/22/2024, 3:36 PM
@Marvin Thanks
m
Marvin
08/22/2024, 3:36 PM
You're welcome! If you have any more questions or need further assistance, feel free to ask. Happy scheduling!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.