When a background job is processed and the OnAttemptsExceeded property is set to AttemptsExceededAction.Delete and the retry attempts have exceeded the set number the job will never log any exceptions. That means this setting AutomaticRetry(Attempts = 0, LogEvents = true, OnAttemptsExceeded = AttemptsExceededAction.Delete) will never log an exception. In this case I am letting the calling application handle the errors but I would like to see the exceptions in the log table.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
[AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Fail)] is not working | 15 | 26545 | November 7, 2020 | |
How to prevent a job from being retried, but still appear as failed? | 0 | 1029 | March 19, 2020 | |
Enqueue a new job if last retry fail | 3 | 6962 | December 23, 2020 | |
Recurring Jobs - Skip instead of Failing | 2 | 2620 | May 28, 2015 | |
Custom Logging of Uncaught Exceptions | 3 | 3123 | March 8, 2017 |