Disable re-queueing of failed Hangfire BackgroundJob

user2992766 picture user2992766 · Mar 4, 2015 · Viewed 11.7k times · Source

Is there a way to disable re-queueing of a failed Hangfire BackgroundJob?

We do not want the failed jobs to be executed again as this might cause issues.

Answer

user2992766 picture user2992766 · Mar 4, 2015

Solved, using [AutomaticRetry(Attempts = 0)]