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.29k stars 1.69k forks source link

The job is finished. It will be removed automatically in a day. What does that mean? #2422

Open ahmedanwar100 opened 1 month ago

ahmedanwar100 commented 1 month ago

From hangfire: image

Will the job be removed from the Hangfire dashboard too and we will not be able to see it? Actually, I just want to limit the retry attempts to 3. I have put that attribute on the interface: [AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Delete)]

@odinserj, can you please help on this?

ahmedanwar100 commented 1 month ago

@odinserj, after putting just the [AutomaticRetry(Attempts = 3)] attribute, this is the output: image

Shoud I just use [AutomaticRetry(Attempts = 3)] or [AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Delete)]

Can you please confirm?

HernJer commented 1 month ago

OnAttemptsExceeded = AttemptsExceededAction.Delete will delete the job after the retries are exceeded. They will not show on the Failed page but will show in the Deleted page.