Skip to content

gocron doesnt work after the day changes #198

Answered by JohnRoesler
mnurfilza asked this question in Q&A
Discussion options

You must be logged in to vote

Hi muhammad,

it doesnt works when the days change
by this do you mean it works for one day and then doesn't work the following day?

One thing I note, it looks like you're starting the scheduler twice - once with s.StartBlocking() and also inside of the CronJobExporting() with async. I'm not sure how works / behaves in gocron, but may be a problem.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mnurfilza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants