Hello,
I have an MVC application with .net Framework 4.8
I want a scheduled job to run on a specific application, note that my solution has multiple applications connected to the same DB
Each application can have its own Hangfire by specify a schema for each one. The MVC application would have to configure each connection to Hangfire and know which one to call.
Alternatively, you can have a unique queue for each application and specify the queue when enqueuing the job. This, however, isn’t currently available for scheduled jobs. There is also issues where the queue can get lost if the job is retried (due to failure or server/app restart).
Ideally the application would have an API and within the API call it would queue/schedule a job. Then the application can handle configuring its own Hangfire instance and the MVC app doesn’t have to know.