Open ahmedanwar100 opened 1 month ago
@odinserj, after putting just the [AutomaticRetry(Attempts = 3)]
attribute, this is the output:
Shoud I just use [AutomaticRetry(Attempts = 3)]
or [AutomaticRetry(Attempts = 3, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
Can you please confirm?
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.
From hangfire:![image](https://github.com/HangfireIO/Hangfire/assets/35097422/ef18f531-90da-4e3e-87aa-2a2aeeb053e9)
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?