I’ve Hangfire setup on a Windows Service, which I start basically with _server = new BackgroundJobServer();
I’ve somethings like 30 commands configured, each with different Command/Parameters (which is a basic setup I believe).
Each task must be continuously executed every 1 Minute. So I’ve setup columns Cron and Frequency respectively as */1 * * * *
and Every 1 minutes
.
The problem is this: if I queue the 30 commands, and some of them takes more than 1 minute (i.e. 10 minutes due to heavy process to be executed), it continuously queue every task (also the ones which is already processing), resulting in a blocking/infinitely queue for the task which can’t de-queue in 1 minute.
How can I resolve it avoid the re-queue of already processing task?
Thanks