All,
After queuing a long-running background job (non-recurring - total task may take a few hours), I’ve noticed the task never completes, and HangFire restarts the task for no reason. If I check the records in HangFire.State, I see that the same Job ID has multiple entries that are all marked “Processing”. There is never any completion or failure entries and there are no errors in my error log (the entire task is wrapped in a try/catch with output to the logger in the event of an exception). The task just keeps getting restarted without a chance to complete.
Thoughts? I’ve attached the screen shot of the State table.