Software /
code /
prosody
Diff
plugins/mod_cron.lua @ 13264:9b720c38fee8
mod_cron: Revert bbd3ac65640d
Maybe it is better to run daily and weekly tasks 'now' on the theory
that people set these things up during times that are appropriate for
maintenance already, so the same time next day or next week might be
fine for periodic cleanup.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Jul 2023 13:03:40 +0200 |
parent | 12977:74b9e05af71e |
child | 13265:6ac5ad578565 |
line wrap: on
line diff
--- a/plugins/mod_cron.lua Sun Oct 08 18:21:14 2023 +0200 +++ b/plugins/mod_cron.lua Sun Jul 30 13:03:40 2023 +0200 @@ -22,10 +22,6 @@ task.save = save_task; module:log("debug", "%s task %s added, last run %s", task.when, task.id, task.last and datetime.datetime(task.last) or "never"); - if task.last == nil then - local now = os.time(); - task.last = now - now % periods[task.when]; - end return true end