# \#distributed-locks

**URL:** https://discuss.hangfire.io/tag/distributed-locks/23.md

[Latest](https://discuss.hangfire.io/latest.md) · [Categories](https://discuss.hangfire.io/categories.md) · [Tags](https://discuss.hangfire.io/tags.md)

---

## [Issue with Hangfire lock timeout](https://discuss.hangfire.io/t/issue-with-hangfire-lock-timeout/11048)

<div class="topic-metadata">

**Author:** [@Tango](https://discuss.hangfire.io/u/Tango)\
**Replies:** 0\
**Last updated:** [December 6, 2024, 1:18pm UTC](https://discuss.hangfire.io/t/issue-with-hangfire-lock-timeout/11048 "2024-12-06T13:18:07Z")

</div>

Good afternoon, I have this error when I run a BackgroundJob (not recursive, it’s a one-shot job): Hangfire.Storage.DistributedLockTimeoutException: Hangfire.Storage.DistributedLockTimeoutException: Timeout expired. Th…

---

## [Hangfire and SQL Server Locks - xp\_userlock](https://discuss.hangfire.io/t/hangfire-and-sql-server-locks-xp-userlock/8262)

<div class="topic-metadata">

**Author:** [@Jkelly](https://discuss.hangfire.io/u/Jkelly)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 10:06pm UTC](https://discuss.hangfire.io/t/hangfire-and-sql-server-locks-xp-userlock/8262 "2022-11-16T22:06:34Z")

</div>

A customer is running hangfire.io on our platform and we’re nothing that hangfire processess acount for 95% of the LCK\_M\_IX waits in SQL. At times there are 240+ continuous locks involving xp\_userlock in the system. I’…

---

## [Why job are rescheduled for feature time when concurrent exec. is disabled?](https://discuss.hangfire.io/t/why-job-are-rescheduled-for-feature-time-when-concurrent-exec-is-disabled/8763)

<div class="topic-metadata">

**Author:** [@Nenad\_Manev](https://discuss.hangfire.io/u/Nenad_Manev)\
**Replies:** 2\
**Last updated:** [November 12, 2021, 10:48pm UTC](https://discuss.hangfire.io/t/why-job-are-rescheduled-for-feature-time-when-concurrent-exec-is-disabled/8763 "2021-11-12T22:48:54Z")

</div>

Hey Everyone, this is my first time to post here, so please let me know if the raised question is not clear. I have jobs in mu application that should be executed one after another, so I have disabled the concurrent exe…

---

## [Access to Hangfire's distributed lock logic](https://discuss.hangfire.io/t/access-to-hangfires-distributed-lock-logic/6830)

<div class="topic-metadata">

**Author:** [@sophisma](https://discuss.hangfire.io/u/sophisma)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 3:18pm UTC](https://discuss.hangfire.io/t/access-to-hangfires-distributed-lock-logic/6830 "2019-11-20T15:18:49Z")

</div>

Hi, I remember a few years back stumbling into some Hangfire class that allowed to use the internal distributed lock logic. I don’t remember exactly what the line of code was but it allowed to do something like this: c…

---

## [Hangfire seems deadlocked?](https://discuss.hangfire.io/t/hangfire-seems-deadlocked/4304)

<div class="topic-metadata">

**Author:** [@Fabian\_Schneiter](https://discuss.hangfire.io/u/Fabian_Schneiter)\
**Replies:** 0\
**Last updated:** [January 29, 2018, 6:12pm UTC](https://discuss.hangfire.io/t/hangfire-seems-deadlocked/4304 "2018-01-29T18:12:19Z")

</div>

Hi, since a few days we encounter issues with Hangfire: the processing of background jobs seems to stop from one second to the other. Even restarting the worker does not help, it starts up and does nothing, although acc…

---

## [Azure SQL: Adding a new job is failing](https://discuss.hangfire.io/t/azure-sql-adding-a-new-job-is-failing/2844)

<div class="topic-metadata">

**Author:** [@kaushal](https://discuss.hangfire.io/u/kaushal)\
**Replies:** 1\
**Last updated:** [January 19, 2017, 5:48am UTC](https://discuss.hangfire.io/t/azure-sql-adding-a-new-job-is-failing/2844 "2017-01-19T05:48:32Z")

</div>

Getting the below error Inner Exception: “Object reference not set to an instance of an object.” Stack Trace: at System.Transactions.Transaction.GetPromotedToken() The error comes from the line connection.EnlistT…

---

## [One Dashboard and multiple servers running same subset of jobs](https://discuss.hangfire.io/t/one-dashboard-and-multiple-servers-running-same-subset-of-jobs/2054)

<div class="topic-metadata">

**Author:** [@dikoga](https://discuss.hangfire.io/u/dikoga)\
**Replies:** 1\
**Last updated:** [June 1, 2016, 12:55pm UTC](https://discuss.hangfire.io/t/one-dashboard-and-multiple-servers-running-same-subset-of-jobs/2054 "2016-06-01T12:55:38Z")

</div>

Hi guys, We have a subset of jobs that run in each server our application is deployed. It does some checks, maintenance and so forth. But we would like to have only one manager where it is possible to check what's goin…

---

## [DisableConcurrentExecution Bug](https://discuss.hangfire.io/t/disableconcurrentexecution-bug/866)

<div class="topic-metadata">

**Author:** [@Tho77](https://discuss.hangfire.io/u/Tho77)\
**Replies:** 2\
**Last updated:** [April 21, 2015, 2:08pm UTC](https://discuss.hangfire.io/t/disableconcurrentexecution-bug/866 "2015-04-21T14:08:54Z")

</div>

We have a function in non-static class decorated with the attributes: \[DisableConcurrentExecution(600)\] \[AutomaticRetry(Attempts = 1)\] public void SendOutNotifications() Within the class we have a static function to q…
