HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.43k stars 1.71k forks source link

Hide Expired Jobs in Dasboard UI #2407

Open djfoxer opened 6 months ago

djfoxer commented 6 months ago

Hi.

I have discovered, that when I call Background Job.Delete Job is not deleting from [Job Queue] table (SQL) (as described here https://discuss.hangfire.io/t/backgroundjob-delete-doesnt-delete-from-jobqueue-table/1526). It stays in [Job Queue] table and is visible in DashboardUI as "Expired Job". Is it safe to delete record from [Job Queue] table when I delete particualr Job by Background Job.Delete? Or maybe there is method in MonitoringApi to do that is "safe way" (I just don't like to mess in Hangfire DB) or maybe there is a way to hide Expired Job in Dashboard UI?