mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
forget to update cronjob lastRun
This commit is contained in:
@@ -76,6 +76,7 @@ func (self *SCronJob) run(now time.Time) {
|
||||
if self.lastRun.IsZero() || now.Sub(self.lastRun) >= self.runInterval {
|
||||
log.Debugf("Run cronjob %s", self.name)
|
||||
go runJob(self.name, self.job)
|
||||
self.lastRun = now
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user