HangfireIO / HangfireIO/Hangfire.SqlServer.RabbitMq

Jobs on RabbitMQ queues are limited to only one executing job at a time per queue for each server

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
37
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Queue consumers - one of which is created for each Hangfire queue - are configured with a `prefetchCount` setting of '1':

https://github.com/HangfireIO/Hangfire.SqlServer.RabbitMq/blob/e72d8ee7bab48b751f37b4e37b7ddf0f32523faf/src/Hangfire.SqlServer.RabbitMq/RabbitMqJobQueue.cs#L111

The result of that is that each consumer will only be allowed to have one message (job) unacked - which they are whilst being processed. Even if more workers are configured and available on a given server, they are all made to wait for one job to be completed until another one can be started.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.