HangfireIO / HangfireIO/Hangfire

Hangfire jobs are enqueued but stuck in queue

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

Description

SDK : .NET 8 Latest
Hangfire : 1.8.12 Latest
Data Storage : SQL Server
Trace Log : Sorry i did not know where it located

-------------------------------------------------------------------------
Configuration in Program.cs
-------------------------------------------------------------------------

```csharp
builder.Services.AddHangfire(config => config
.SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseSqlServerStorage(DBConn.HangfireConnectionString,
new SqlServerStorageOptions
{
DeleteExpiredBatchSize = 150,
QueuePollInterval = TimeSpan.FromSeconds(5),
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
JobExpirationCheckInterval = TimeSpan.FromMinutes(15)
}
));

builder.Services.AddHangfireServer(option =>
{
option.WorkerCount = 5;
option.ServerName = Roz.RootKey;
});
```

-------------------------------------------------------------------------
Enqueue Screen Shot
-------------------------------------------------------------------------

![hangfire](https://github.com/HangfireIO/Hangfire/assets/31652546/a6026031-a148-4991-8ae3-77234e1a74e7)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with .NET 8, Hangfire 1.8.12, the shown Program.cs configuration, and SQL Server storage. Locate the trace logs, determine why enqueued jobs remain in the queue, and confirm the fix by showing that jobs are picked up and processed.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.