# Single DB for multiple applications

**URL:** <https://discuss.hangfire.io/t/single-db-for-multiple-applications/1798>\
**Category:** question\
**Tags:** recurring\
**Created:** [February 17, 2016, 6:58am UTC](https://discuss.hangfire.io/t/single-db-for-multiple-applications/1798 "2016-02-17T06:58:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niyati](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Niyati](https://discuss.hangfire.io/u/Niyati)\
**Post date:** [February 17, 2016, 6:58am UTC](https://discuss.hangfire.io/t/single-db-for-multiple-applications/1798/1 "2016-02-17T06:58:55Z")

</div>

Hi,

In my project, there are 2 APIs and each runs 2 queues. Both of APIs shares same DB for Hangfire.

While running Recurring job, I’m getting error mentioned below:  
“_Recurring job ‘Test1.Execute’ can not be scheduled due to job load exception._”

The possible reason could be, two of APIs tries to run jobs which are not configured to them.

Example:  
API1: Name - Test1, Queues - A and B  
API2: Name - Test2, Queues - C and D

So I think, Test1 is trying to run a job from the queue named “C”.

Could you please suggest, how to fix this issue. Am I missing something in configurations?  
(v1.5.3.0 is being used.)

Thanks in adv.

---

<div class="post-metadata">

**Author:** ![Dylan\_Clark](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@Dylan\_Clark](https://discuss.hangfire.io/u/Dylan_Clark)\
**Post date:** [May 13, 2016, 3:02pm UTC](https://discuss.hangfire.io/t/single-db-for-multiple-applications/1798/2 "2016-05-13T15:02:43Z")

</div>

I have noticed the same behavior. This appears to be a Hangfire bug. It should not be trying to create a job for a queue that it is not registered for. Have you received any replies?

---

<div class="post-metadata">

**Author:** ![Niyati](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@Niyati](https://discuss.hangfire.io/u/Niyati)\
**Post date:** [June 15, 2016, 5:50am UTC](https://discuss.hangfire.io/t/single-db-for-multiple-applications/1798/3 "2016-06-15T05:50:14Z")

</div>

Neither received any replies nor could find the solution. For now, separate DBs are created to handle queues of each APIs (didn’t like this solution but had to implement).

You said that you have noticed same behaviour, so did you find any solution for the same?

---

<div class="post-metadata">

**Author:** ![Laksh\_Parab](https://avatars.discourse-cdn.com/v4/letter/l/90db22/32.png) [@Laksh\_Parab](https://discuss.hangfire.io/u/Laksh_Parab)\
**Post date:** [June 29, 2017, 5:04pm UTC](https://discuss.hangfire.io/t/single-db-for-multiple-applications/1798/4 "2017-06-29T17:04:31Z")

</div>

I also wanted to use single DB for multiple instances running on different machines. As per the documentation [here](http://docs.hangfire.io/en/latest/background-processing/running-multiple-server-instances.html) it is supported since version 1.5. You are using V1.5 is it still not working?
