I have a web service on IIS that does the following:
- I have 2 recurring jobs that internally creates around 800 jobs. The recurring job is supposed to run at midnight.
- Hangrire is using MSSQL in the background.
I expected the recurring jobs to run at midnight. But when I logged into the hangfire dashboard the next day, the recurring jobs got kicked off then (and not at midnight).
I was wondering whether this issue was beacuse my request to the hangfire request after the app pool refresh attributed to this behavior.
Have you tried this?
As it says on the Hangfire docs:
Also, don't forget to run
iisreset
after you're done, since the new configs need to be loaded up by the IIS server.