<@ULVA73B9P> I want to specify a cron schedule in ...
# ask-marvin
r
@Marvin I want to specify a cron schedule in my prefect.yaml for a deployment. Show the schedule yaml snippet for running everynight at 10:30 Australia / Brisbane time with a parameter override of 'ndays=2'
m
thought for 65.1 seconds
Here's the YAML snippet for your deployment schedule that will run every night at 10:30 PM Brisbane time with the parameter override of 'ndays=2':
Copy code
yaml
schedules:
  - cron: "30 22 * * *"
    timezone: "Australia/Brisbane"
    params:
      ndays: 2
This configuration: - Uses "30 22" to specify 10:30 PM (22:30 in 24-hour format) - "*" wildcards for day, month, and weekday mean it runs every day - Explicitly sets the timezone to Australia/Brisbane - Includes the parameter override for ndays You can include this snippet within your
prefect.yaml
under the specific deployment configuration. The complete context might look something like:
Copy code
yaml
deployments:
  - name: your-deployment-name
    schedules:
      - cron: "30 22 * * *"
        timezone: "Australia/Brisbane"
        params:
          ndays: 2
The schedule will respect Brisbane local time, including any daylight saving time adjustments (though note that Queensland doesn't observe DST).