Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_cron: Fix log format to account for float that was integer before | Kim Alvefur | 2024-02-24 | 1 | -1/+1 |
| | |||||
* | mod_cron: Allow configuring various "internal" delay parameters | Matthew Wild | 2024-02-20 | 1 | -2/+10 |
| | | | | | Notably, it is now possible to add a randomized spread factor to the check interval. | ||||
* | mod_cron: Rebuild with new LuaFormatter settings (tabs!) | Kim Alvefur | 2023-11-30 | 1 | -77/+59 |
| | |||||
* | mod_cron: Update Teal source and rebuild | Matthew Wild | 2023-11-30 | 1 | -77/+75 |
| | |||||
* | mod_cron: Rename variable to fix shadowing (#luacheck) | Matthew Wild | 2023-11-30 | 1 | -2/+2 |
| | |||||
* | mod_cron: Add shell command to list registered cron tasks with status | Matthew Wild | 2023-11-30 | 1 | -0/+28 |
| | |||||
* | mod_cron: Make task frequencies configurable in overly generic manner | Kim Alvefur | 2023-10-22 | 1 | -5/+4 |
| | | | | Requested feature for many modules, notably MAM and file sharing. | ||||
* | mod_cron: Remove unused import [luacheck] | Kim Alvefur | 2023-10-15 | 1 | -1/+0 |
| | | | | Use of datetime was removed in 6ac5ad578565 | ||||
* | mod_cron: Load last task run time inside task runner to fix async | Kim Alvefur | 2023-10-14 | 1 | -10/+28 |
| | | | | | This ensures that all interactions with storage happen inside an async thread, allowing async waiting to be performed in storage drivers. | ||||
* | mod_cron: Revert bbd3ac65640d | Kim Alvefur | 2023-07-30 | 1 | -4/+0 |
| | | | | | | | 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. | ||||
* | plugins: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-24 | 1 | -2/+2 |
| | |||||
* | mod_cron: Fix recording last task run time #1751 | Kim Alvefur | 2022-05-05 | 1 | -0/+1 |
| | | | | | | | The type checks, they do nothing! Observed: Tasks that were supposed to run weekly or daily were running each hour. | ||||
* | mod_cron: Allow for a small amount of timer drift | Kim Alvefur | 2022-01-15 | 1 | -1/+1 |
| | | | | | | | | | If the timer activates a bit early then a task might be just a few seconds short of being allowed to run. This would run such a task rather than wait another hour. The value 0.5% chosen so that a weekly task does not run an entire hour earlier than last time. | ||||
* | mod_cron: Expose the One Timer via module environment | Kim Alvefur | 2021-12-04 | 1 | -1/+1 |
| | | | | | This makes it easier to reschedule or otherwise manipulate the timer from e.g. the shell, which is handy for debugging. | ||||
* | mod_cron: Add a 'weekly' job frequency | Kim Alvefur | 2021-12-03 | 1 | -1/+1 |
| | |||||
* | mod_cron: Initialize timestamp of new tasks to start of period | Kim Alvefur | 2021-12-03 | 1 | -2/+2 |
| | | | | | Makes it more generic so new periods (e.g. weekly etc) can be added easily. | ||||
* | mod_cron: Follow convention of imports at the top | Kim Alvefur | 2021-12-03 | 1 | -1/+2 |
| | |||||
* | mod_cron: Initialize daily tasks so they run around midnight UTC | Kim Alvefur | 2021-12-03 | 1 | -0/+4 |
| | | | | | | Eventually the goal is to have daily tasks run while there is little activity, but that will vary with the server and the usage patterns of its users. This is a start anyway. | ||||
* | mod_cron: Initial commit of periodic task runner | Kim Alvefur | 2021-11-21 | 1 | -0/+59 |
A number of modules now have periodic tasks that need to run, e.g. for cleaning out old messages or files. This has highlighted a need for coordinating and optimizing scheduling of such tasks. |