Succeeded jobs deleted

sql-server
Tags: #<Tag:0x00007f499f151888>

#1

Hello,

I use hangfire as an Azure Website with a SQL Azure database. I works fine, my scheduled jobs are executed every night, but the history keeps getting removed. I have 2 jobs, but I can only see the last 2 executions in the dashboard.
So, next to the ‘Succeeded jobs’ it says 23, but when I click on it, I can only see the last 2. Is this by design or do I need to configure something to maintain the history?

Many thanks.

Greetings,
Mark


Successful Jobs not Deleted from Database
#2

This is expected functionality, and only occurs for completed or deleted jobs, any pending or failed jobs are not removed. If you want more information, you can see the source code here:

or a conversation with the creator of hangfire on how to adjust the length of the expiration here:

later,
Geddy