Distributed Lock Timeout Exception - Timeout expired

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)

1 Like