Linden
cc6aed591f
chore: adjust links
2025-03-29 21:46:58 +11:00
Linden
fb2225e373
chore: add copyright notices to each file
...
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
Judd
a4978804a2
feat(cron): add maxDelay property to control task execution delay ( #708 )
2025-02-11 20:15:29 +11:00
hakanesnn
7076f19c9b
fix(cron): matching weekdayMap with os.date ( #700 )
2025-01-29 07:00:20 +11:00
Judd
cb6792ed58
fix(cron): prevent duplicate executions and enhance type safety ( #690 )
2025-01-20 01:20:09 +11:00
Linden
fdbf0ac114
refactor(cron): refresh currentDate after 1s
...
May help with rare task failure on startup (#457 ).
2023-12-10 10:09:21 +11:00
Linden
167a068d85
feat(server/cron): getTimeAsString
2023-10-23 16:50:57 +11:00
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