Quantcast
Channel: User MikelThief - Stack Overflow
Viewing all articles
Browse latest Browse all 26

Answer by MikelThief for how to pause hangfire's job? between certain hours

$
0
0

You need to provide a correct cron expression to the recurring job which will fire your desired code.

For example, this cron expression runs the job every hour from 8AM to 8PM.

0 0 8-16 ? * * *

Cron is a "whitelist" approach (i.e. when to work) than "blacklist" approach as in your questions (when not to work). Hangfire runs recurring jobs based on cron expressions.


Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>