Way to delay running Hangfire on startup?

Hi everyone! We have been using Hangfire successfully for a while now - however after noticing some startup performance issues lately on our production web server pool - I wanted to try and make sure Hangfire only starts running the queue/recurring jobs/etc after a short delay (to let things settle). Is it possible to do so? Thanks in advance. We’re using ASP.Net (non-Core)

2 Likes

Dang! I did a google search wanting this exact same thing.

Does anyone know of a way of achieving this - we’re on asp.net core unlike OP but apart from that same thing - want to only start Hangfire processing the queue after a delay on startup

Also interested in this. I think my database is initializing slower than Hangfire so when Hangfire tries to access the database for information it gets a System.NullReferenceException. A minute or two later and everything runs just fine.