-
-
Notifications
You must be signed in to change notification settings - Fork 808
fix(cron): resolve task execution conflicts and timing precision issues #1718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
This reverts commit 45308f5.
Apparently, passing leading nil values via an export breaks it entirely.
feat: add auto-migrations on startup
…ment-isValid-on-register-command add a new argument on the register command feature
feat(esx_menu_default) Redesign of the menu.
fix(esx_menu_default): remove debug print
…absolute units with vh
feat(esx_menu_dialog) Updates the UI of esx_menu_dialog to match esx_menu_default
Fixed critical bugs in cron system causing scheduled tasks to fail after server restarts.
|
This submission is intended to resolve this issue. #1294 |
Kr3mu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but I'll test it when I get home and if everything is alright I'll approve it.
|
Hey, reviewed your code once again when I came back from school, looks good to me. I like what you did, but I'll told kenshin to also verify this change. Thanks for opening the PR. |
|
|
fix(cron): resolve task execution conflicts and timing precision issues
Description
Fixed critical bugs in cron system causing scheduled tasks to fail after server restarts.
Motivation
When servers restarted before scheduled task times (e.g., server restarts at 19:10, task scheduled for 19:20), cron jobs would not execute. This affected resources like okokDeleteVehicles that depend on scheduled cleanup tasks.
Root Causes:
lastTimestamp, causing interferenceImplementation Details
Per-task execution tracking:
lastRuntimestamp for each cron jobPrecision minute-boundary timing:
Enhanced validation:
Usage Example
PR Checklist