[BUG] - ErrAtTimeNotSupported
when trying to Update/reschedule Job
#499
Labels
bug
Something isn't working
ErrAtTimeNotSupported
when trying to Update/reschedule Job
#499
Describe the bug
When attempting to reschedule a Job originally scheduled with
Every(time.Duration)
by setting a newStartAt
time (to delay 24 hours),ErrAtTimeNotSupported
is returned. It's unexpected because I usedStartAt
on the original scheduling so the re-schedule isn't doing anything different.I'm not 100% sure this is a bug or intentional behavior, but I started getting this error after updating from
v1.18.1
.To Reproduce
Reproducible with this test:
Version
v1.28.0
Expected behavior
Expectations are shown in the above test code: no error and job is rescheduled for 24 hours in the future.
Additional context
The error is coming from here.
In both the original scheduling and re-scheduling,
jobUnit
isduration
. In original schedule,job.getAtTime(jobLastRun)
is 0, so there is no error. When rescheduling, this is a non-zero value and it errors.The text was updated successfully, but these errors were encountered: