I have been using hangfire for a few months.
I was wondering if it was possible to change some of the options Dynamically. IE the workcount. Or possibly Stop the agent
So I have the Code:
var options = new BackgroundJobServerOptions
WorkerCount = Settings.HangFireAgentCount,
Queues = Settings.HangFireQueue
_BackgroundServer = new BackgroundJobServer(options);
Would it be a problem if the values of the workercount changes to run that code above with the new values? Will it still maintain the current jobs? and if I wanted to send a stop to one of them do a _BackgroundServer.SendStop