good explanation. what if someone needed to run a job manually from a web ui? for example u have a daily job, it finished with an err and a manager fixed the err manually and wanted to re-run the job.
In such a case, you would like to push the job to the job queue. If the queue is generic, you can use an interpreted language to add the job. Not a great way. Will try to find a better way.
So that you wont get bothered every time someone from the marketing team wants to add a plugin, which requires a job to be executed periodically, to the web platform
Not just marketing. You might want to run something in the background periodically at a specific time. I have tried to explain in this episode: ua-cam.com/video/UfmzataUVYc/v-deo.html Please have a look.
There is a Similar library in C# called HangFire which does similar thing only addition is it has a very good Dashboard, Retry, Job status etc..
exactly what I need in my project
Glad! This was helpful!
Very helpful video! Thx )
good explanation. what if someone needed to run a job manually from a web ui? for example u have a daily job, it finished with an err and a manager fixed the err manually and wanted to re-run the job.
In such a case, you would like to push the job to the job queue. If the queue is generic, you can use an interpreted language to add the job.
Not a great way. Will try to find a better way.
How to prevent duplicate cron jobs from running when using this library?
You can use ditributed lock that works like a mutex. Please ccheck this episode: ua-cam.com/video/UfmzataUVYc/v-deo.html
why would you need a lib like this in go? so easy to write a go func to do for { select
So that you wont get bothered every time someone from the marketing team wants to add a plugin, which requires a job to be executed periodically, to the web platform
Huh? What’s this got to do with marketing???!
Not just marketing. You might want to run something in the background periodically at a specific time. I have tried to explain in this episode: ua-cam.com/video/UfmzataUVYc/v-deo.html
Please have a look.
@@codeheim but thiat is so simple to do in go, like super easy. don't need a lib