Can someone help me to figure out how to delete the open queue in Hangfire?
I am able to delete jobs so they don't continue queuing against dead queues, but I have not found a way to actually delete the queue itself, as they continue to clutter up the dashboard page.
I use the below code to delete all the jobs :
var monitoringApi = JobStorage.Current.GetMonitoringApi();
var queues = monitoringApi.Queues();
foreach (QueueWithTopEnqueuedJobsDto queue in queues)
{
var jobList = monitoringApi.EnqueuedJobs(queue.Name, 0, int.MaxValue);
foreach (var item in jobList)
{
BackgroundJob.Delete(item.Key);
}
}
I attached the image below :
Aside from manually deleting entries in the JobQueue table, is there a way to clean the queues ?
Hi all
Can someone help me to figure out how to delete the open queue in Hangfire? I am able to delete jobs so they don't continue queuing against dead queues, but I have not found a way to actually delete the queue itself, as they continue to clutter up the dashboard page.
I use the below code to delete all the jobs :
I attached the image below :
Aside from manually deleting entries in the JobQueue table, is there a way to clean the queues ?