<@ULVA73B9P> I'm trying to create a deployment yam...
# ask-marvin
b
@Marvin I'm trying to create a deployment yaml with an interval schedule but it errors when I go to deploy, saying that interval is an invalid parameter. is there something else I'm missing? could you provide an example?
m
To set up an interval schedule for your deployment in the YAML file, you should use the
RRuleSchedule
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:
Copy code
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`:
Copy code
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?