Hi All,
Why Hangfire Recurring Job only run once when my ASP .NET Core 2.2 deployed on CentOS 7?
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddSerilog();
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
});
app.UseAuthentication();
app.UseHangfireServer();
app.UseHangfireDashboard("/hangfire", new DashboardOptions()
{
Authorization = new[] { new HangfireAuthorizationFilter() }
});
RecurringJob.AddOrUpdate(() => ScheduledTasks.Minutely_Tasks(), Cron.Minutely());
what I missed?
thanks a lot in advance
Don