Open markvincentcaro opened 6 years ago
same as Days()
Bump, anyone? Is is almost a Year now. I have similar issues.
Same thing happen, gocron suddenly does not trigger at certain hour.
go func(config *Config) {
gocron.Every(1).Day().At("22:00").Do(something, config)
gocron.Every(1).Day().At("14:00").Do(somethingElse, config)
<-gocron.Start()
}(config)
It works only at 14:00 but 22:00 no run at all. Is it a bug or has to do with machine time setting?
Same thing happen, gocron suddenly does not trigger at certain hour.
go func(config *Config) { gocron.Every(1).Day().At("22:00").Do(something, config) gocron.Every(1).Day().At("14:00").Do(somethingElse, config) <-gocron.Start() }(config)
It works only at 14:00 but 22:00 no run at all. Is it a bug or has to do with machine time setting?
Solved, after debugging it's in my fault. My Apologize for this.
I have added logs to my application whenever it runs my Job to make sure it has properly executed.
When I schedule my Job on Sunday 8:00 AM UTC, it fails to execute (no logs generated):
However, if I schedule the Job on a different day (e.g. Thursday), it executes (logs were generated):
Is there something I am doing wrong when scheduling my Job on Sunday 8:00 AM UTC, or is there an issue with using gocron for this specific interval?