-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can gocron work with gin #50
Comments
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 |
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.
The text was updated successfully, but these errors were encountered: