bamzi / jobrunner

Framework for performing work asynchronously, outside of the request flow
MIT License
1.04k stars 99 forks source link

Support user-defined job name #25

Open AceDarkknight opened 4 years ago

AceDarkknight commented 4 years ago

as this issue #8 say, currenctly I can not add a job using user-defined name. I create a RP and resolve this. The example is as follow:

var myFunc = func(){}
jobrunner.Schedule("cron.frequent", jobs.Func(myFunc), "my-job")