Hangfire Discussion

Recurring Job only run once when my ASP .NET Core 2.2 deployed on CentOS 7

recurring
Tags: #<Tag:0x00007f84f87710a8>

#1

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