hangfire enqueued but not processing(hangfire 定时任务入队列但不执行)

Posted zinan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hangfire enqueued but not processing(hangfire 定时任务入队列但不执行)相关的知识,希望对你有一定的参考价值。

 不生效的方法
//RecurringJob.AddOrUpdate<FamilyAppService>((s) => s.UpdateFamilyLevel(), input.CronExpression, TimeZoneInfo.Local, "crontab_update_family_level_900001");

  去掉时区和名字之后就好了,暂不清楚原因,应该是我对这个方法的后面这两个参数理解的有问题。

   RecurringJob.AddOrUpdate<FamilyAppService>((s) => s.UpdateFamilyLevel(), input.CronExpression);

  


以上是关于hangfire enqueued but not processing(hangfire 定时任务入队列但不执行)的主要内容,如果未能解决你的问题,请参考以下文章