mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
mod_cron: Add a 'weekly' job frequency
This commit is contained in:
parent
d6070eea1f
commit
8aa16eaec0
4 changed files with 9 additions and 2 deletions
|
@ -3,7 +3,7 @@ module:set_global();
|
|||
local async = require("util.async");
|
||||
local datetime = require("util.datetime");
|
||||
|
||||
local periods = { hourly = 3600; daily = 86400 }
|
||||
local periods = { hourly = 3600; daily = 86400; weekly = 7 * 86400 }
|
||||
|
||||
local active_hosts = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue