You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When load balancing the backoffice, all servers will have the `SchedulingPublisher` role. This means the approach described above for restricting jobs to specific server roles will not work as intended. All servers will match the `SchedulingPublisher` role.
339
339
340
-
Instead, for jobs that should only run on a single server, you should implement an `IDistrutedBackgroundJob`.
340
+
Instead, for jobs that should only run on a single server, you should implement an `IDistributedBackgroundJob`.
341
341
342
342
`IDistributedBackgroundJobs` is separate from `IRecurringBackgroundJob`, and are tracked in the database to ensure that only a single server runs the job at any given time.
343
343
This also means that you are not guaranteed what server will run the job, but you are guaranteed that only one server will run it.
0 commit comments