Skip to content
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

Latest scheduling should be based off the latest of nextScheduledDate or .now #44

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

adam-fowler
Copy link
Member

There was a possibility that updateNextScheduledDate would be called a second time before the current date reached the previous next scheduled date. Jobs with latest scheduling accuracy would not update the scheduled date as it would be calculated from .now which returned the same date as before.

To get around this .latest returns the latest of nextScheduledDate and Date.now

@adam-fowler adam-fowler merged commit 6aeb0a1 into main Dec 21, 2024
6 checks passed
@adam-fowler adam-fowler deleted the schedule-fix branch December 21, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants