To get rid of the locks, i am deleting the locks from the lock table as a temporary solution. As a permanent solution in .net core i am using IHostApplicationLifeTime to gracefully stop all the hangfire jobs and hangfire server if needed before the host server gets terminated, so that the locks don’t occur in first place. You can also check other options suggested in hangfire git discussion(https://github.com/HangfireIO/Hangfire/issues/1799)
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Issue with Hangfire lock timeout | 0 | 206 | December 6, 2024 | |
Long running jobs cause "Distributed Lock Timeout Exception", and multiple instance of the same job | 0 | 3700 | August 6, 2021 | |
Lock timeout problems! | 9 | 16722 | August 4, 2021 | |
DistributedLock TimeoutException with batches, but batch operations get executed | 9 | 8028 | March 20, 2017 | |
Unable to use Redis (ASPNET Core 2.x) | 0 | 1104 | August 12, 2018 |