HangfireIO / HangfireIO/Hangfire

Hide Expired Jobs in Dasboard UI

Open
#2,407 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

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?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the BackgroundJob.Delete behavior against the SQL Job Queue table and observing how the Dashboard UI displays the remaining expired job. Determine whether the desired outcome is safe queue cleanup or hiding expired jobs, then verify the chosen behavior in the dashboard and database.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.