Closed namkazt closed 5 years ago
so i came with 1 solution for now is on cron.go
at run
functions:
case newEntry := <-c.add:
now = time.Now().Local() // <--- set now as current time before add and calculate next call time
c.entries = append(c.entries, newEntry)
newEntry.Next = newEntry.Schedule.Next(now)
edit: update now
at end of loop seem not good because it will be update after other channel was called.
sorry it is a bug in old cron version. closed fixed in #13
So my case is when i stop the job:
and add it back after a time
this job run multi time before it actualy going correct depend on how long i stop the task
here is details log: