Open danilovulovic opened 8 years ago
any news on it?
having the same issue, but it seems to have been fixed in 1.6.15, will update and see if it continue to happens
https://github.com/HangfireIO/Hangfire/releases/tag/v1.6.15
1.6.15 @odinserj odinserj released this on 9 Aug · 24 commits to master since this release
Release Notes
This release contains important fixes for the Hangfire.SqlServer package, which is actively using the sp_getapplock stored procedure to synchronize work between different servers. I've realized that locks shouldn't be awaited on SQL Server's side, because this may lead to SQL Server's connection pool starvation, because each blocked request will block a single worker thread.
When you are using a lot of workers, and there's a contention on few lock resources (like when using the DisableConcurrentExecutionAttribute, batches or many continuations on a single job), all worker threads can be blocked in SQL Server, causing its unresponsiveness and lead to huge amount of timeout exceptions.
We have multiple jobs and put DisableConcurrentExecution(600) but some operations can last more than 10 mins. In that case, we get following error:
If operation lasts less than 10 mins, everything works fine.