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?
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