Open ramlakhan78 opened 5 months ago
Hi there :)
I am glad to meet all of you . Actually i am facing a issue with hangfire recuring job , i have created a recuring job but it is not firing and it's last and next execution time is N/A as you can see in this snapshot :)
My project's hangfire configuration is :
services.AddHangfire(x => x.UseSqlServerStorage(Configuration.GetConnectionString("MSSQL")));
app.UseHangfireDashboard("/hangfire", new DashboardOptions { Authorization = new List { new MyAuthorizationFilter() } }); app.UseHangfireServer();
and this is my job code :
RecurringJob.AddOrUpdate("change-fighters-fighter-class", () => auto.UpdateFightClassForUser(), Cron.Hourly); RecurringJob.AddOrUpdate(() => auto.SendInvoiceToUser(), Cron.Hourly);
Could you please advise, how to avoid this kind of issues?
Thanks in advance
Hi there :)
I am glad to meet all of you . Actually i am facing a issue with hangfire recuring job , i have created a recuring job but it is not firing and it's last and next execution time is N/A as you can see in this snapshot :)
My project's hangfire configuration is :
services.AddHangfire(x => x.UseSqlServerStorage(Configuration.GetConnectionString("MSSQL")));
app.UseHangfireDashboard("/hangfire", new DashboardOptions { Authorization = new List { new MyAuthorizationFilter() } }); app.UseHangfireServer();
and this is my job code :
RecurringJob.AddOrUpdate("change-fighters-fighter-class", () => auto.UpdateFightClassForUser(), Cron.Hourly); RecurringJob.AddOrUpdate(() => auto.SendInvoiceToUser(), Cron.Hourly);
Could you please advise, how to avoid this kind of issues?
Thanks in advance