# Enqueue job makes it to Job table, but never the JobQueue and never fires

**URL:** <https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479>\
**Category:** question\
**Tags:** sql-server, queues\
**Created:** [October 12, 2022, 2:20am UTC](https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479 "2022-10-12T02:20:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enpur](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@Enpur](https://discuss.hangfire.io/u/Enpur)\
**Post date:** [October 12, 2022, 2:20am UTC](https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479/1 "2022-10-12T02:20:11Z")

</div>

I am using a very simple call to queue up a job. I can see the job in the Job table, without an expiration. It never fires. I have changed it to at timed delay, waited and it never fires.  
In the code below, the “reservation” is a simple POCO and the 0 is a flag.

```auto
 BackgroundJob.Enqueue(() => QueueCheckin(reservation, 0));

```

---

<div class="post-metadata">

**Author:** ![aschenta](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/aschenta/32/2837_2.png) [@aschenta](https://discuss.hangfire.io/u/aschenta)\
**Post date:** [October 12, 2022, 2:52pm UTC](https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479/2 "2022-10-12T14:52:16Z")

</div>

Are you queuing other jobs? Are other jobs processing? Are you configuring Hangfire server to actually process the jobs?

---

<div class="post-metadata">

**Author:** ![Enpur](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@Enpur](https://discuss.hangfire.io/u/Enpur)\
**Post date:** [October 12, 2022, 5:40pm UTC](https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479/3 "2022-10-12T17:40:37Z")

</div>

I am late coming into this project and from what I can see, Hangfire is set up well enough to work as the “RecurringJob.AddOrUpdate()” calls working on a 2am schedule appear to be running as their Job record in the table shows “Succeeded” The Jobs I am trying to launch show “Scheduled” for a day, then they show “Failed” I have one from yesterday priot to posting this question that is still in the “Scheduled” state. One from the day before is “Failed.”

---

<div class="post-metadata">

**Author:** ![Tieson\_Trowbridge](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/tieson_trowbridge/32/2895_2.png) [@Tieson\_Trowbridge](https://discuss.hangfire.io/u/Tieson_Trowbridge)\
**Post date:** [October 16, 2022, 6:02am UTC](https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479/4 "2022-10-16T06:02:43Z")

</div>

Do you have any Queue filters setup? For example, this is my setup for a Windows service I want to only handle certain jobs:

```auto
host = new BackgroundJobServer(new BackgroundJobServerOptions
{
    Queues = new[] { QueueNames.EMAIL, QueueNames.MAINTENANCE }
});

```

`QueueNames` is just a static class with constant strings defined.

With these options, this service only processes background jobs that have matching `[Queue("something here")]` annotations.

---

<div class="post-metadata">

**Author:** ![Enpur](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@Enpur](https://discuss.hangfire.io/u/Enpur)\
**Post date:** [October 26, 2022, 3:34am UTC](https://discuss.hangfire.io/t/enqueue-job-makes-it-to-job-table-but-never-the-jobqueue-and-never-fires/9479/5 "2022-10-26T03:34:28Z")

</div>

So I discovered that the BackgroundJobServer(options) was commented out. I have reenabled it, annotated the background jobs and now all of the scheduled jobs that were running now sit in “queued” state forever. Digging now for where those jobs are set up.
