How to stop a recurring task running late (or when missed)

Tags: #<Tag:0x00007f186200a038> #<Tag:0x00007f1862009b88>

We use Hangfire to run some batch processes at the end of the day. For some reason Hangfire stopped processing tasks, and when I restarted the website, it ran the day-end tasks that it failed to run from the previous day.

Is there any way to prevent Hangfire from running missed recurring tasks?

Basically I want Hangfire to run a task when it was scheduled, and if it misses running the task in an acceptable window of time to not run the missed task at all.

For example set a task to occur every day at 10pm, but don’t run (or expire) if missed by 30 minutes.

1 Like

Has anybody any clues?