-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double executing of the same job #842
Comments
Im experiencing the same issue. Did you find the cause and the solution for it? |
Hi all, I'm using Hangfire server version 1.6.17 with SQL Server storage, the production environment is:
My application is an asp.net MVC 5 website, .Net Framework 4.6.1. Below the application lifecycle (some non-significant parts will be omitted) : 1 - Application preload
2 - Global.asax.cs
3 - OWIN startup class
Returning to the problem of double execution, I think that is related to the application pool recycling, what I saw is that the concurrent Another possible cause, but I'm not sure, can be the JobBootstrapper phase. In this phase, executed on startup, the scheduler engine is running and I hope someone will give me suggestions and that this BUG will be fixed soon Thanks in advance |
Hi all, Another question is: the PRO version works well or has the same issue? For me, this is an urgent issue to resolve, the multi-instance feature with SQL Server storage doesn't work as expected Br |
Same issue also for me, We observed it just after the application pool recycle. Thanks |
Was your job executing at the time of the recycle? It sounds like you want Hangfire to kick off the job at the time, but regardless of how the job proceeds, to never try again. So that if the recycle occurs mid-job then you don't want the job to be tried again. Is that right? I guess one hacky way to reduce the chance of this occurring is to make your Hangfire job a single statement that starts a new task on the thread pool. That way the Hangfire job starts and finishes really quickly and, if the task gets killed, so be it. |
Hi, We have the same issue. We have a long running job which takes more than 30 mins. Right after 30 mins, same job kicks off. |
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?
The text was updated successfully, but these errors were encountered: