Skip to content

Commit

Permalink
chore: add hint to avoid top of hour (#19)
Browse files Browse the repository at this point in the history
* Hint to avoid top of hour

Since we know people copy this template, give a gentle nudge in the comment and schedule for people to not always run at the top of the hour (or at midnight)

* Stronger hint

* Update schedule-template.yaml
  • Loading branch information
awreece committed Jun 10, 2024
1 parent 9314e22 commit edb06a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion schedule-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ instances:
- name: INSTANCE_ID
databases:
- name: DATABASE_ID
schedule: 0 * * * * # run hourly
schedule: 42 * * * * # Run hourly at a "random" minute
# to follow best practices with cron and
# avoid scheduling all jobs at exactly
# the same time.
# Please change 42 to your favorite number!
expire: 6h # the backup will expire after 6 hours
time_zone: Australia/Sydney # optional. "utc" is the default value.

0 comments on commit edb06a6

Please sign in to comment.