Cron expression for Recurring jobs

Hello

If someone can help me with some good source or help article about the Cron expressions for Hangfire. I am willing to learn it since I have lot of work to do to create recurring jobs for different situations. Such as, maintenance jobs everyday and emails in batches with a gap of 30 minutes for three times and some similar tasks.

Thanks

Hi,

Hangfire use NCrontab, please research this https://code.google.com/p/ncrontab/w/list

For example if you want run job every:
x minutes use ā€œ0/x * * * *ā€
x hourse use ā€œ0 */x * * *ā€ you can set minutes also ā€œ15 */x * * *ā€
x days ā€œ0 0 */x * *ā€
etc.

You can combine all expressions

3 Likes

Thanks. It helped :slight_smile:

For you Googlers out there, the nCron project has a new home: