Configure cron job that is executing every 15 minutes on Hangfire

Nikolay Kostov picture Nikolay Kostov · Jan 10, 2015 · Viewed 24.5k times · Source

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?

Answer

Nikolay Kostov picture Nikolay Kostov · Jan 13, 2015

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