Hi everyone
I’m currently looking into Hangfire to schedule a lot of recurring jobs (cron) with. And I have a couple of questions.
- What way does everyone use to schedule their jobs when the Web API Hangfire starts? Does everyone just put a ton of RecurringJob.AddOrUpdate in their StartUp?
RecurringJob.AddOrUpdate(“some-id”, () => Console.WriteLine(), Cron.Hourly);
- Is there any way to change the scheduling of a recurring job while the Web API Hangfire is running?
– I tried adding a rest contract that accepts a jobid and new cron schedule, but there is no method that can just adjust the cron schedule, I always need a reference to the job? - Is there any way I can add jobs to an already running Web API Hangfire, through adding a .dll in a folder somewhere or?
Thank you
Schoof