Open huyntsgs opened 6 years ago
I have same problem.
I backed with github.com/robfig/cron and all work fine
This one gives a nice answer im using right now. https://stackoverflow.com/questions/52719015/using-gin-gonic-and-some-scheduler-in-golang
i have same problem
I backed with github.com/robfig/cron and all work fine
could you mind to give sample implementation about it?
Please refer my sample at https://github.com/huyntsgs/exercise/blob/master/main.go#L215 and https://github.com/huyntsgs/exercise/blob/master/main.go#L63
how about every (time) get data from db and send broadcast notif with gcm. @huyntsgs
I want to use gocron with gin router. But it seems that gin router and gocron block each other. If i start goncron before router.Run, the genData will be done, but can not get response from /ex/getdata. If i start router.Run before gocron.Start(), I can get response from /ex/getdata but genData job is not executed.