Disable Hangfire auto retry

This commit is contained in:
Joseph Milazzo 2025-05-10 12:01:02 -05:00
parent 7a2227d64a
commit e5be6f6bd4

View file

@ -55,6 +55,9 @@ public class Startup
{ {
_config = config; _config = config;
_env = env; _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. // This method gets called by the runtime. Use this method to add services to the container.