Commit Graph

11 Commits

Author SHA1 Message Date
Linden
45362017c6 fix(server/cron): more scheduling woes
Schedule next-day tasks.
Some logic improvements and breaking changes from 8488dec.
2023-08-01 17:39:37 +10:00
Linden
9c90b5be5f fix(server/cron): prevent scheduling tasks for new days
From 8488de.
2023-07-17 23:35:53 +10:00
Linden
149213032b fix(server/cron): getTimeUnit corrections
Consistency between range and lists.
Use different time comparisons for minute units.
2023-07-17 22:48:33 +10:00
Linden
8488dec3d3 refactor(server/cron): allow getNextTime minute and hour "overflow"
Per the Lua manual,
"if sec is -10, it means 10 seconds before the time specified by the other fields".
i.e. { min = 61, hour = 0 } is equal to { min = 1, hour = 1 }

Should improve scheduling and help with #368.
2023-07-17 20:07:30 +10:00
Linden
9e2076f5a5 refactor(server/cron): types and formatting, simplify getMaxDaysInMonth 2023-07-17 19:57:35 +10:00
Linden
6ab719654f fix(server/cron): list expression should use >=
Resolves #366.
2023-07-10 08:50:26 +10:00
daZepelin
d070c631b4 fix(cron) edge case fixes (#345) 2023-06-13 04:57:39 +10:00
daZepelin
6486f995e1 feat(server/cron): getAbsoluteNextTime (#319) 2023-05-28 15:08:40 +10:00
Linden
16875ca7e3 fix: type corrections 2023-05-18 15:38:53 +10:00
Linden
28aaa9c5d9 fix(server/cron): only print on task stop when debug is enabled 2023-04-21 01:46:27 +10:00
Linden
d093805ef4 feat(imports): cron scheduling (#293) 2023-04-17 16:52:31 +10:00