HangfireIO / HangfireIO/Hangfire

Succeeded jobs are not deleted - never

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

Description

As I understand Succeeded jobs should be deleted automatically (default) after 1 day?
I see since ever they are not deleted. I have 20.000.000 succeeded jobs, and DB is low on Disk space. Any solution? We are using latest Hangire.

[Hangfire Dashboard](https://imgur.com/tGoffJ0)

EDIT: We use Asp Net Core latest (3.1.4) + MSSQL Hangfire.

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified. Start by examining succeeded-job expiration and deletion behavior for the ASP.NET Core 3.1.4 and MSSQL setup described; reproduce the accumulation and identify the relevant configuration or failure. Done means succeeded jobs are deleted as expected and the database no longer grows from retained jobs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
backend, database
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.