.NET Core app still getting 2 servers started one with 10 workers, how to ensure only 1

Tags: #<Tag:0x00007f49a05a4e70>


.net core 2.2 web app. I need to ensure that for a given job, there are never more than one running. So I configured my startup options with this
app.UseHangfireServer(new BackgroundJobServerOptions { WorkerCount = 1 });

Why do I still get 2 servers , with one of them having 10 “workers”? I have configured what I gather from the documentation to only have a single worker.



Are you calling both UseHangfireServer and UseHangfireDashboard that caused me to get two servers.