Hi all, i’ve a net 8 application that will be deployed in many server.
1)On startup i read list of recurring job settings and register them by:
RecurringJob.AddOrUpdate(
recJob.Name,
() => jobRunner.RunRecurringJobAsync(jobType),
recJob.CronExpression,
queue: “recurring”
);
Is there any issue if multiple server to this same things many time? I want avoid to have some kind of lock on this, is it ok?
-
Another thing, which signature should i use? The implementation above is marked as deprecated.
-
One last thing: if i have 20 servers, which one will trigger recurring jobs?
Thanks all.