Disable Hangfire auto retry
This commit is contained in:
parent
7a2227d64a
commit
e5be6f6bd4
1 changed files with 3 additions and 0 deletions
|
|
@ -55,6 +55,9 @@ public class Startup
|
|||
{
|
||||
_config = config;
|
||||
_env = env;
|
||||
|
||||
// Disable Hangfire Automatic Retry
|
||||
GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 0 });
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue