Linden
2a1d6aa2ae
refactor(server/cron): run jobs in a new thread
...
Better for error handling.
2023-10-23 16:50:29 +11:00
Linden
a29ede22af
Revert "refactor(server/cron): reduce wait to reschedule task"
...
This reverts commit d12f4845f2 .
2023-08-13 09:28:40 +10:00
Linden
d268168dc7
fix(server/cron): invalid step return for indivisible values
...
Was reliant on some previously removed hacky-logic in scheduleTask.
Return value + max and rely on getNextTime/os.time to handle overflow.
2023-08-07 18:08:53 +10:00
Linden
8c9cdb1a13
refactor(server/cron): extra debug info
2023-08-06 17:36:40 +10:00
Linden
d12f4845f2
refactor(server/cron): reduce wait to reschedule task
...
Was a hacky solution to an obsolete issue.
2023-08-06 17:27:41 +10:00
Linden
becc29bcea
fix(server/cron): getTimeUnit early return and +1 to minute
2023-08-06 17:14:32 +10:00
Linden
1a74263949
fix(server/cron): stop all tasks with negative sleep values
...
Changes in 4536201 and other cron tweaks have improved the accuracy
of getNextTime. Negative values should now always be expired.
2023-08-03 00:53:39 +10:00
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