Skip to content
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

Hangfire jobs are enqueued but stuck in queue #2387

Open
Sajadh92 opened this issue Apr 5, 2024 · 1 comment
Open

Hangfire jobs are enqueued but stuck in queue #2387

Sajadh92 opened this issue Apr 5, 2024 · 1 comment

Comments

@Sajadh92
Copy link

Sajadh92 commented Apr 5, 2024

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

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

@Sajadh92 Sajadh92 changed the title Hangfire Job Are Enqueued but stuck in queue Hangfire jobs are enqueued but stuck in queue Apr 5, 2024
@Sajadh92
Copy link
Author

Sajadh92 commented May 9, 2024

Update:

It work and the job is processing only if the queue name is pre-defined on config on startup .. but still ignore any queue name that came from runtime and not exist in config ..

I hope this issue will be fixed on next reales bcs we need to create a different queue for each store or each product we have to make the data reflect on cach very quickly ..

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant