I’ve got the following set up:
public void ScheduleJob()
{
BackgroundJob.Enqueue(() => Job());
}
[DisableConcurrentExecution(0)]
[AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
public async Task Job()
{
Console.WriteLine("Test");
}
With the following config
services.AddHangfire(config =>
config.UseSQLiteStorage("censored;",
new SQLiteStorageOptions()));
services.AddHangfireServer();
Now when I launch this it executes the Job a bunch of times in a short amount of time
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
Test
What could cause this mass execution of jobs?