Mercurial > prosody-hg
diff teal-src/plugins/mod_cron.tl @ 12002:cbed7d8d8f35
mod_cron: Add a 'weekly' job frequency
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 03 Dec 2021 09:05:41 +0100 |
| parents | 5a8c6f9a4583 |
| children | 7f25ac9d8f0d |
line wrap: on
line diff
--- a/teal-src/plugins/mod_cron.tl Fri Dec 03 09:01:09 2021 +0100 +++ b/teal-src/plugins/mod_cron.tl Fri Dec 03 09:05:41 2021 +0100 @@ -12,6 +12,7 @@ local enum frequency "hourly" "daily" + "weekly" end local record task_spec @@ -28,7 +29,7 @@ item : task_spec end -local periods : { frequency : integer } = { hourly = 3600, daily = 86400 } +local periods : { frequency : integer } = { hourly = 3600, daily = 86400, weekly = 7*86400 } local active_hosts : { string : boolean } = { }
