Recurring job runs every minute after initial execution


#1

I couldn’t find any solution or explanation for this, so posting the question here.

using Hangfire.AspnNetCore 1.7.7

and set up a single tally job that is scheduled for 6 hours run time. “* */6 * * *”

However, when it runs, Hangfire will execute the job every minute for the next hour.

I have no idea why it is doing this.


#4

That sounds correct to me. Did you expect that cron string to do something else?
See: https://crontab.guru/#*_*/6_*_*_*


#5

Not sure how to use Cron string. Thought just had to put /6 on the hour marker. The correct string is 0 */6 *… It is now working correctly.

Thanks for the link. Much appreciated.