Hangfire Discussion

How to remove Expired Jobs from Awaiting Queue?

queues
dashboard
Tags: #<Tag:0x00007f84fad78ff8> #<Tag:0x00007f84fad78c88>

#1

Greetings!

Recently, due to an error, I enqueued about 77k jobs that shouldn’t be executed. In an atempt to stop the jobs, I stopped the service and deleted all these jobs from the tables (Job, JobParameter, JobQueue, State) with the JobIds starting on the first one. That worked fine, but those 77k jobs are now in a permanent limbo in the Awaiting queue, as expired:

ymf

The other jobs generated after this cleaning are executed correctly, so these 77k are mostly visual garbage, however i cannot find a way to clear these expired jobs.

How can i remove them from this list or clear it?

Thanks in advance!