Hangfire is using ncrontab to run recurring job.
Does this below contab run every weekly Monday at 12 am for only 2017?
0 0 * * 1
How can I make sure it runs only for 2017 or every year?
Hangfire is using ncrontab to run recurring job.
Does this below contab run every weekly Monday at 12 am for only 2017?
0 0 * * 1
How can I make sure it runs only for 2017 or every year?
Hangfire uses NCrontab library. As you could see, this lib provides a way to rapidly test its own functionality. Just open
C# Interactive
window in Visual Studio and paste a code like below:Another way is to use online crontab visualizer. For example: cron.schlitt.info.
Both tools give the same result: your cron expression means "run each Monday forever".