Ben Wenger
06/03/2024, 5:27 PMMarvin
06/03/2024, 5:28 PMRRuleSchedule
or IntervalSchedule
. It looks like you might be using an outdated or incorrect keyword. Here's an example of how to correctly configure your deployment YAML with an interval schedule:
yaml
deployments:
- name: my-deployment
schedule:
interval: 600
The interval
should be defined in seconds, so this configuration sets the interval to run every 10 minutes (600 seconds). Yet, from the document, it seems RRuleSchedule
might be preferred for advanced scheduling:
Here's what the configuration might look like with `RRuleSchedule`:
yaml
deployments:
- name: my-deployment
schedule:
type: RRuleSchedule
rrule: "DTSTART:20230101T000000Z\nRRULE:FREQ=MINUTELY;INTERVAL=10"
Make sure to adjust the rrule
to fit your specific use case.
For more details: Prefect Scheduling Documentation.
Would that suffice, or do you need further enlightenment?