ncron

Configure cron job that is executing every 15 minutes on Hangfire

≡放荡痞女 提交于 2019-11-29 02:56:13
I am using Hangfire and like the software very much! But one thing I am missing is how to add a recurring job that executes every few minutes (e.g. every 15 minutes). Is there a way to achieve this? Currently I am using this approach: RecurringJob.AddOrUpdate(() => Console.Write("Recurring"), "*/15 * * * *"); And is working like a charm. Reference to my question in Hangfire forums: http://discuss.hangfire.io/t/how-to-create-cron-job-that-is-executing-every-15-minutes/533 Looking at Hangfire.Cron class I don't know if it's possible. A workaround would be to create four different schedules i.e:

Configure cron job that is executing every 15 minutes on Hangfire

蓝咒 提交于 2019-11-27 15:35:15
问题 I am using Hangfire and like the software very much! But one thing I am missing is how to add a recurring job that executes every few minutes (e.g. every 15 minutes). Is there a way to achieve this? 回答1: Currently I am using this approach: RecurringJob.AddOrUpdate(() => Console.Write("Recurring"), "*/15 * * * *"); And is working like a charm. Reference to my question in Hangfire forums: http://discuss.hangfire.io/t/how-to-create-cron-job-that-is-executing-every-15-minutes/533 回答2: Looking at