HangfireIO / HangfireIO/Hangfire

Throttling Semaphores cause wrong retry count

Open
#2,296 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

Hi, we're facing an issue when using Throttling Semaphores

Some of our jobs should try 4 times but getting blocked by the semaphore consume some retries and actually run just one time

here a dashboard screenshot for reference
![retrycount error](https://github.com/HangfireIO/Hangfire/assets/17157579/3019b280-8d20-41d8-a689-f13bcc5cc16a)

Any suggestions?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with Throttling Semaphores and jobs configured for four attempts, using the dashboard screenshot as the observed result. Trace when semaphore blocking and retry counting occur, then verify that blocked executions do not incorrectly consume the configured retry count.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.