# RecurringJobs being enqueued from other queues

**URL:** <https://discuss.hangfire.io/t/recurringjobs-being-enqueued-from-other-queues/1594>\
**Category:** bug?\
**Created:** [December 3, 2015, 11:46pm UTC](https://discuss.hangfire.io/t/recurringjobs-being-enqueued-from-other-queues/1594 "2015-12-03T23:46:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Sam](https://discuss.hangfire.io/u/Sam)\
**Post date:** [December 3, 2015, 11:46pm UTC](https://discuss.hangfire.io/t/recurringjobs-being-enqueued-from-other-queues/1594/1 "2015-12-03T23:46:56Z")

</div>

Hi all 😄

I’m running Hangfire on a single database, with one primary [asp.net](http://asp.net) server, but also multiple development [asp.net](http://asp.net) servers.

Each server has hangfire configured to only look at its own queue:

`app.UseHangfireServer(new BackgroundJobServerOptions() { Queues = new[] { machineName } });`

I am adding a RecurringJob, with a unique ID for each server - recurring every minute:

`RecurringJob.AddOrUpdate("ReceiptSend " + machineName, () => Background_ReceiptSend(), "* * * * *", null, machineName);`

The primary server is permanently online, and the development servers are on and off.

My problem is that when a development server is offline, its Jobs are still being enqueued by the other servers that are online.

This seems like incorrect behaviour - I have only told each Hangfire instance to look at queues for that particular machineName. Why are they enqueuing jobs for other queues? This seems like a bug, as when I then start up a development server, it often has to run ~1000 jobs that have been queued up by OTHER servers (that should not have been even looking at that queue).

Thanks!

---

<div class="post-metadata">

**Author:** ![gandarez](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/gandarez/32/470_2.png) [@gandarez](https://discuss.hangfire.io/u/gandarez)\
**Post date:** [December 4, 2015, 8:37pm UTC](https://discuss.hangfire.io/t/recurringjobs-being-enqueued-from-other-queues/1594/2 "2015-12-04T20:37:51Z")

</div>

> [@Sam](#):
>
> ey enqueuing jobs for other queues?

Strange behavior. I noticed about your post and started trying to hack Worker process but it always look to Queues property which comes from BackgroundJobServerOptions. Btw I’ll try to simulate your situation locally.
