Hi, thanks for this idea… now I can send email to myself whenever a job exhausted all its retries…
But I am curious, why did you choose
OnAttemptsExceeded = AttemptsExceededAction.Delete instead of
OnAttemptsExceeded = AttemptsExceededAction.Fail ?
I guess a job could go into
Fail state several times regardless the numbers of attempts has exceeded or not? I tried to find any documentation about a job life cycle but could not find any… hence the question.
If I use the
Delete state as you do, what happen if I really want to delete a job (manually via hangfire web interface)… wouldn’t the filter intercept my action and stop the deletion?