How can I dynamically define which server a job will run on at time of job creation?


#1

I understand that in a multi-server environment, Hangfire will somehow run queue jobs on different servers based on some rule (which is not yet obvious). However, we sometimes would like to specify that a job will run on a specific server. Ideally, we would like to specify at the job level. So, if we initially specify a job without a specific server it can run anywhere. But, if we later (or initially) specify a server the job should only run on, Hangfire will next run the job on that server only, until and only if the job is later redefined as not having any specific server to run on.

Is this possible?