You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix Scheduler.NextRun() not returning the correct value
* if the nearest run is zero we'll never be before it
---------
Co-authored-by: John Roesler <johnrroesler@gmail.com>
Describe the bug
To Reproduce
Example
The output :
Version
v1.34.1
Expected behavior
Return to the correct Job and time
Additional context
gocron/scheduler.go
Lines 522 to 531 in 01fcdee
The variable
nearestRun
is initialized to0001-01-01 00:00:00 +0000 UTC
It looks like
nr.Before(nearestRun)
will always be falseThe text was updated successfully, but these errors were encountered: