What is the difference between what the dashboard displays as “Servers” and “Workers”.
In my asp.net core web app, Im using these options with the intention of ensuring only a single job is running at a time. I dont want a job starting on another thread if the same job has already started and not completed yet
app.UseHangfireServer(new BackgroundJobServerOptions { WorkerCount = 1 });
It means that there are two Hangfire servers running, one has 1 worker count and the other has 10 worker counts.
Only one instance of worker from one server will pick a job. Hangfire by default will prevent duplicate jobs running. You don’t have to do anything.