-
Notifications
You must be signed in to change notification settings - Fork 17
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
Jobs may stuck in Enqueued state after app crash/restart #49
Comments
When a job is dequeued it updates the My guess is that after the job completed it mostly likely failed with other housekeeping tasks were called. i.e update state, counters and so on. If you can provide logs we can surely look further into it |
Unfortunately, there are no Hangfire related warnings/errors. I have enabled additional logging to catch such problems in future. |
Most likely the job was stored (+ state), but a Hangfire.AzureCosmosDb/src/CosmosDbWriteOnlyTransaction.cs Lines 71 to 84 in 6e6b040
I think the only thing I can do there (at least in my bad environment) is to check for those "hung" jobs on app startup and then manually create |
In an unstable environment where an application may crash or restart due to some external issue, there may be a case where some jobs may hang and never be moved to the processing state.
In my case there are 6 jobs that are in Enqueued state, but I can't see them via the dashboard (only count is displayed).
Looks like an item with type
DocumentTypes.Queue
was fetched using aJobQueue
class and then the application crashed or something like that.There is data from CosmosDb related to the document:
The text was updated successfully, but these errors were encountered: