I am using a very simple call to queue up a job. I can see the job in the Job table, without an expiration. It never fires. I have changed it to at timed delay, waited and it never fires.
In the code below, the “reservation” is a simple POCO and the 0 is a flag.
I am late coming into this project and from what I can see, Hangfire is set up well enough to work as the “RecurringJob.AddOrUpdate()” calls working on a 2am schedule appear to be running as their Job record in the table shows “Succeeded” The Jobs I am trying to launch show “Scheduled” for a day, then they show “Failed” I have one from yesterday priot to posting this question that is still in the “Scheduled” state. One from the day before is “Failed.”
So I discovered that the BackgroundJobServer(options) was commented out. I have reenabled it, annotated the background jobs and now all of the scheduled jobs that were running now sit in “queued” state forever. Digging now for where those jobs are set up.