forget to update cronjob lastRun

This commit is contained in:
Qiu Jian
2018-08-12 09:11:22 +08:00
parent 1f8bf7fa04
commit f7d815eb64
+1
View File
@@ -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
}
}