I am having a problem that some jobs on hangfire are been queued more than one time with the same parameters, the jobs are almost queued at the same time.
I've tried to limit the numbers of workers for just one and then to decorate my method with DisableConcurrentExecution
.
I'm using sqlserver as storage. Anyone had faced this problem, there are some tips to avoid it?
PS: I used DisableConcurrentExecution
because on hangfire documentation says that mutex and semaphores could not guarantee the job being called just one time.
PS2: Check my hangfire servers I note that i had two instances, each one with 1 worker, so I think its a parallelism problem not a concurrent one.
checkIfQueueExists
– Variolous