-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I started getting this error last night. My suspicion is that it may be related to standard time switchover? Nothing has been changed with the code nor the configuration for months.
Code:
func (j *JobSpec) setNextTick(refTime time.Time, includeRefTime bool) error {
if j.Cron != "" {
t, err := gronx.NextTickAfter(j.Cron, refTime, includeRefTime)
j.nextTick = t
fmt.Printf("\njCron: %s, refTime: %v, includeRefTime: %v, %-v\n", j.Cron, refTime, includeRefTime, err)
return err
}
return nil
}
Couple instance of failures:
jCron: 10 12 * * *, refTime: 2024-11-02 19:39:33.031482225 -0400 EDT, includeRefTime: true, tried so hard
jCron: 15 05 * * *, refTime: 2024-11-02 19:40:14.304755524 -0400 EDT, includeRefTime: true, tried so hard
jCron: 20 05 * * *, refTime: 2024-11-02 19:40:36.725177004 -0400 EDT, includeRefTime: true, tried so hard
The same code works for other instances:
jCron: 15 00 * * *, refTime: 2024-11-02 19:40:36.723989643 -0400 EDT, includeRefTime: true, <nil>
jCron: 25 00 * * *, refTime: 2024-11-02 19:40:36.724409077 -0400 EDT, includeRefTime: true, <nil>
jCron: 35 00 * * *, refTime: 2024-11-02 19:40:36.724593286 -0400 EDT, includeRefTime: true, <nil>
jCron: 0 0 1 * *, refTime: 2024-11-02 19:40:36.724980983 -0400 EDT, includeRefTime: true, <nil>
Metadata
Metadata
Assignees
Labels
No labels