mod_cron: Add a 'weekly' job frequency

This commit is contained in:
Kim Alvefur 2021-12-03 09:05:41 +01:00
parent d6070eea1f
commit 8aa16eaec0
4 changed files with 9 additions and 2 deletions

View file

@ -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 = {}