I have multiple different versions of my application deployed in a server farm (Specifically, different deployment slots on an Azure App). Are there any recommendations for ensuring that jobs will only execute on “one” server (i.e. on the latest/specific version), Ideally with out changing an App-setting (as this would force an app restart which is one of the main reasons I use deployment slots)
I can identify the “ideal” version easily by saving the highest number into the DB (at app startup), but I’m unsure of how to get Hangfire to execute on that server. Should I just manually Start/Stop the respective background servers or is there a more eloquent way of achieve this?