feat: add log and defer task loading

This commit is contained in:
Simon Ding
2024-11-04 12:04:28 +08:00
parent 1e2d8b8520
commit b176253fc4
3 changed files with 4 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ func (c *Client) addSysCron() {
return true
})
c.cron.Start()
log.Infof("--------- add cron jobs done --------")
}
func (c *Client) mustAddCron(spec string, cmd func()) {