HangfireIO / HangfireIO/Hangfire
Double executing of the same job
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
I have a strange behavior for some (not all) jobs:

We have a few equally configured jobs (you can see "Bubbleroom" text on the image, we have a few more jobs with different names there. Some of them executed once, but this one executed twice without any notifications.
We have only 1 server and 1 DEFAULT queue executed as windows service.
Job each time executed from start to end without exceptions (last line is writing a log message to papertrail and this log message appears twice).
Recurring jobs page shows that it was started exactly when it should (it is true).
All jobs (24 jobs on a image) have tag to prevent concurrent executions, but
I cant understand why this happen and what should I check and how to prevent this issue?
Contributor guide
Research direction
Start with the recurring-jobs page, DEFAULT queue, Windows service setup, concurrency-prevention tags, and duplicated Papertrail log entries described in the report. Reproduce or correlate the two complete executions and determine the cause and a reliable way to prevent duplicate job runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100