1,360 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
136
views
MassTransit scheduled redelivery with Kafka and Hangfire does not work
I’m trying to configure scheduled redelivery in MassTransit when using Kafka as the transport.
Immediate retries work fine using UseMessageRetry.
Since Kafka does not support delayed redelivery, I’m ...
0
votes
0
answers
71
views
Hangfire + MailKit: Connection refused due to timeout (even with extended CommandTimeout)
I'm using Hangfire in an ASP.NET Core application to send emails using MailKit. When I enqueue a background job that sends email, it fails with a timeout and returns:
A connection attempt failed ...
1
vote
1
answer
74
views
WithJobExpirationTimeout doesn't work as expected
Adding the line .WithJobExpirationTimeout(TimeSpan.FromDays(60)) in AddHangfire config code in Program.cs (see below) doesn't seem to change the timeout. The Job expiration timeout is still the same 3 ...
-3
votes
1
answer
125
views
Hangfire rate limiting
I am using Hangfire in .NET to run some background jobs (send emails specifically). My email service has rate limiting of 100 emails a minute and 1000 per hour.
Is there any way to configure rate ...
Craig's user avatar
- 36.9k
2
votes
1
answer
55
views
Hangfire console application does not fire recurring job
I have a console application.
And I am using the latest version of the following 2 packages:
Hangfire.Core 1.8.20
Hangfire.MemoryStorage 1.8.1.1
And I have the following simple console application ...
0
votes
0
answers
54
views
Hangfire job succeeds on first retry after HttpRequestException
I've created a webhook queuing system. Requests come in from IOT devices and their data queued, before being sent by a POST request using hangfire (used to manage retries). Only 1 hangfire job per ...
0
votes
1
answer
43
views
Getting exception during deserialization in PostgreSqlConnection.GetStateData method
I have a .NET 8 service which uses Hangfire library for async jobs. I have configured Hangfire with PostgreSQL database.
I need to check the state of a running job frequently for which I am using the ...
0
votes
1
answer
137
views
When Hangfire deployed in Azure webjob , multiple webjobs instances picks same hangfire job
When Hangfire deployed in Azure webjob , multiple webjobs instances picks same jobs
I am using hangfire 1.6.21 version
I have deployed Hangfire in Azure webjob
Using Azure SQL server as Database for ...
1
vote
0
answers
54
views
Hangfire Autofac Job Can't Resolve DbContext: ComponentNotRegisteredException in BackgroundScope
I'm working on a .NET Framework 4.6.1 application using Autofac (5.2.0) for dependency injection and Hangfire for background jobs.
I have a service class StoreDataCleanupService that depends on an EF ...
2
votes
0
answers
85
views
How to use WebApplicationFactory for integration tests together with Hangfire?
I want to add integration tests to the project. The project also has a Hangfire. I decided to do it using test containers and WebApplicationFactory. But when trying to add to Hangfire services
...
1
vote
1
answer
59
views
Why hangfire cannot change a global state
I am testing Hangfire with a basic PoC and it failed to change even the most basic state:
using Hangfire;
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddHangfire(...
0
votes
0
answers
177
views
Hangfire Multiples Jobs Simultaneously
I have a payment application that uses Hangfire to process some payments.
However, in my production environment, I currently have only one pod running the worker that processes payments. I want to ...
0
votes
0
answers
25
views
.NET hangfire services - Application not getting started
I am new to .NET webservices.
I am trying to implement Hangfire service in the following way
In startup.cs
Add the below snippets in ConfigureServices() method
services.AddHangfire(config =>
...
1
vote
0
answers
103
views
Hangfire jobs get "succeed" status in db, but job doesn’t run
I have two mongo Hangfire databases: the first is local (running in Docker) and works properly, while the second is hosted in the cloud and isn’t functioning as expected. The cloud database is used by ...
0
votes
1
answer
385
views
Setting JobExpirationTimeout not working for Succeeded Hangfire jobs
We are using Hangfire version 1.7.36. I'm trying to set the JobExpirationTimeout from the OnStateApplied() method to retain succeeded and deleted jobs just for 7 hours.
I have set the timeout globally ...