Default automatic retry attempts

Page 12 of the 1.0 manual states

The retry attempt count is limited (3 by default)

But it currently seems to be 10. Is there a way to set the default for the entire app, rather than adding the AutomaticRetryAttribute to every method which is called by hangfire?

as a small note, the example

[AutomaticRetry(20)]

has been replaced by named parameters:

[AutomaticRetry(Attempts=20)]

Thank you again for reporting mistakes! Fixed docs with the correct default value. Also updated docs with information about how to set new default value globally (please see the last sentence and last code block).

1 Like

Hello. This link to guide report 404 (not found).
I’m looking for information to set the retrycount globally to always only run 1 time and immediately fail.

1 Like