C
Join ServerC#
help
❔ Recurring jobs when running multiple instances of your API
DDuke12/12/2022
Looking for some insights on running recurring jobs (Like cleaning a database of expired entries every hour) when you are running multiple instances of your api side-by-side. Do you have some other application just for the recurring jobs? Can I use Hangfire to add recurring jobs that simply have the same identifier? Eg:
In both instances would only create a single job every day?
RecurringJob.AddOrUpdate("powerfuljob", () => Console.Write("Powerful!"), "1 0 * * *");
In both instances would only create a single job every day?
AAccord12/13/2022
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.