Issue with Hangfire and redis storage when bumping package to Microsoft.Extensions.Caching.StackExchangeRedis 9.0.4

Hello,

It appears when upgrading my package Microsoft.Extensions.Caching.StackExchangeRedis from 9.0.2 to 9.0.4, it breaks the run of jobs for Hangfire : I see them as processing but the code is actually never executed and stays stuck.

Hello,

Can you tell me what package you are using for Redis storage support, Hangfire.Pro.Redis, Hangfire.Pro.Redis.SEv2 or Hangfire.StackExchange.Redis?

Hangfire 1.8.18
Hangfire.Pro 3.0.4
Hangfire.Pro.Redis 3.2.0
Hangfire.Throttling 1.4.1

Hangfire.Pro.Redis uses its own version StackExchange.Redis, and you can’t affect it by upgrading another package.

The best way is to diagnose what happens inside the .NET process itself. I’ve written the STDUMP program that uses Microsoft’s ClrMD package to examine a running application or a minidump file. When you pass the PID of a running process, it attaches a debugger to it and queries stack traces of all the running managed threads and displays this information on the console output. Is it possible for you to run this program when you see any problems?

Also, logs emitted by Hangfire can also show potential issues, can you include them here or send to support [at] hangfire.io?

Will continue by email to the support so I can share more.

Probably the recent 3.2.0 release can also help, as it fixes the issue with subscription-based fetch after a race condition during connection establishing logic, please see https://www.hangfire.io/blog/2025/03/26/hangfire.pro.redis-3.2.0.html for details.