HangfireIO / HangfireIO/Hangfire

Double executing of the same job

Open
#842 6 comments 4 reactions 0 assignees View on GitHub
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:
![image](https://cloud.githubusercontent.com/assets/669434/24092731/86fdcf56-0d69-11e7-8663-723a294f56c3.png)
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.