Skip to content

Commit

Permalink
Commented out cron task for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
funnyzak committed Feb 22, 2024
1 parent 0618046 commit a028976
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ func initService() {
// Load all services in the singleton package
singleton.LoadSingleton()

if _, err := singleton.Cron.AddFunc("0 * * * * *", sayHello); err != nil {
panic(err)
}
// if _, err := singleton.Cron.AddFunc("0 * * * * *", sayHello); err != nil {
// panic(err)
// }
}

func sayHello() {
singleton.Log.Info().Msg("Hello world, I am a cron task")
// singleton.SendNotificationByType("wecom", "Hello world", "I am a cron task")
}
// func sayHello() {
// singleton.Log.Info().Msg("Hello world, I am a cron task")
// // singleton.SendNotificationByType("wecom", "Hello world", "I am a cron task")
// }

0 comments on commit a028976

Please sign in to comment.