I’m using SQL Server and Hangfire to process background jobs, and it works great.
However, Hangfire has started to hang and not execute any jobs. The hangfire dashboard show new jobs as enqueued and nothing processing.
I can reproduce this issue, and it happens whenever I cancel/delete a job. We use the method BackgroundJob.Delete() to cancel jobs.
Restarting Hangfire fixes the problem.
Has anyone seen this issue? Could this be down to us not handling cancellation tokens properly?