Is there a way for me to query hangfire to detect if another server is already running jobs? I’d like the ability for the web site, at startup, to say say “is there already this many servers running?” prior to instantiating it’s own.
I ended up doing this to determine my servers:
var server = new Hangfire.SqlServer.SqlServerStorage("SqlConnection");
var monitor = server.GetMonitoringApi();
var servers = monitor.Servers();
You can then use servers to count or check names etc etc.
Thanks
How can I then dispose of these servers using their names?