fp/services/bot/crontab

18 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-08-10 00:28:37 +00:00
# @see https://worker.graphile.org/docs/cron
#
# ┌───────────── UTC minute (0 - 59)
# │ ┌───────────── UTC hour (0 - 23)
# │ │ ┌───────────── UTC day of the month (1 - 31)
# │ │ │ ┌───────────── UTC month (1 - 12)
# │ │ │ │ ┌───────────── UTC day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │ ┌───────────── task (identifier) to schedule
# │ │ │ │ │ │ ┌────────── optional scheduling options
# │ │ │ │ │ │ │ ┌────── optional payload to merge
# │ │ │ │ │ │ │ │
# │ │ │ │ │ │ │ │
# * * * * * task ?opts {payload}
2024-08-31 10:42:28 +00:00
## every 1 minutes, we see which /vods are stale and we mark them as such.
2024-08-10 00:28:37 +00:00
## this prevents stalled Record updates by marking stalled recordings as stopped
2024-09-06 05:39:08 +00:00
* * * * * update_vod_statuses ?max=1 { stalled_minutes:2, finished_minutes:3 }