I have 16 duplicate jobs, similar to the ones below, in a console application running on Azure Web Job.
RecurringJob.AddOrUpdate<SendRegisterEmailPoller>(p => p.Poll(), Cron.Minutely);
Each time it starts, it goes into the "Successful Jobs" view of the Hangfire UI. 16 of them every minute will be useless noise in a successful mode of operation.
How can I stop either a repeated task or all repeated tasks after entering successful tasks?
FYI Run () starts
if(args != null)
backgroundJob.Enqueue<SendRegisterEmailJob>(handler => handler.Execute(args));
Thus, the Execute process will be recorded.
source
share