Swamp quest is not deleted after ExpireAt
I am using the default storage SQL Server
for Hangfire
. Since the rate of job creation per day can be quite high (per hundreds of thousands), the size of the database is also growing quite rapidly.
Initially, I thought it would still be fine because the Succeeded
assignments would be deleted after one day. To my surprise, even after a few days, the task has not yet been removed from the table Hangfire.Jobs
.
When I ran this query on July 30, 2015:
select min(ExpireAt) from Hangfire.Job
where StateName = 'Succeeded'
I got 2015-07-21 13:28:27.543
that about 9 days ago.
I can manually delete the jobs myself, or create a batch job that would periodically clean it up, but is there any scenario where a successful job is still stored outside ExpireAt?
source to share
No one has answered this question yet
Check out similar questions: