Do something when x time left until a recurring job's next execution time

Hi,
is there a way to do something when there is x time left until the next execution time of a recurring job? In this case I’d like to run my notification service that notifies via email.

1 Like

Cool idea. Not sure if it is possible, but good luck.

If you are hosting it within an AspNet or otherwise ‘WebHost’ compatible model, you might be able to leverage one of the native options for a ‘long running’ process. I.e. a HostedService that polls the underlying data store for the job configurations (either directly or through some surface Hangfire itself offers).

Alternately, use a complimentary recurring job scheduled to run each minute and do your polling within that, etc.