jasonlvhit / gocron

A Golang Job Scheduling Package.
BSD 2-Clause "Simplified" License
3.46k stars 345 forks source link

Is it possible to run a cron task concurrently with a server? #118

Closed nigellima closed 5 years ago

nigellima commented 5 years ago

Hi,

is it possible to run a cron task at the same time I have a running server of my API? I would like to set a task and still have my server running. When I set the <- gocron.Start() before my server starts, it never gets started. Or, if I set after the server started, the cron job never gets executed.

Or should I have a different project that performs these tasks?

Thanks in advance