# question

**URL:** https://discuss.hangfire.io/c/question/20.md

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

---

## [About the question category](https://discuss.hangfire.io/t/about-the-question-category/544)

<div class="topic-metadata">

**Author:** [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Replies:** 0

</div>

Support on configuring and using current features of Hangfire. Please use features category for suggesting new features.

---

## [Hangfire.Common.JobLoadException: Could not load the job -\> System.IO.FileNotFoundException](https://discuss.hangfire.io/t/hangfire-common-jobloadexception-could-not-load-the-job-system-io-filenotfoundexception/11432)

<div class="topic-metadata">

**Author:** [@Vasyl](https://discuss.hangfire.io/u/Vasyl)\
**Replies:** 0\
**Last updated:** [June 8, 2026, 7:55am UTC](https://discuss.hangfire.io/t/hangfire-common-jobloadexception-could-not-load-the-job-system-io-filenotfoundexception/11432 "2026-06-08T07:55:41Z")

</div>

Hello everyone, Could someone help me understand the following issue? When I try to recreate/update a recurring job using: RecurringJob.AddOrUpdate( jobId, methodCall, scheduleString, new RecurringJobO…

---

## [WAL pattern need Db to DB Queue](https://discuss.hangfire.io/t/wal-pattern-need-db-to-db-queue/11431)

<div class="topic-metadata">

**Author:** [@m.solhnia](https://discuss.hangfire.io/u/m.solhnia)\
**Replies:** 0\
**Last updated:** [June 1, 2026, 7:43am UTC](https://discuss.hangfire.io/t/wal-pattern-need-db-to-db-queue/11431 "2026-06-01T07:43:25Z")

</div>

in WAL pattern (write after log) to increase durability and reduce lost risk in high TPS apps, first we append data to reliable source (sql-server) then feed it to hangfire to process data. the problem is our flow is: …

---

## [Add to queue externally - best approach?](https://discuss.hangfire.io/t/add-to-queue-externally-best-approach/11430)

<div class="topic-metadata">

**Author:** [@KTdk](https://discuss.hangfire.io/u/KTdk)\
**Replies:** 0\
**Last updated:** [May 27, 2026, 1:13pm UTC](https://discuss.hangfire.io/t/add-to-queue-externally-best-approach/11430 "2026-05-27T13:13:05Z")

</div>

I’m building a solution where I plan to use Hangfire in a console app that should process various jobs - all job logic and processing should only happen in the console app. However, I need to add jobs to the queue inclu…

---

## [Specify retry attempts at enqueue](https://discuss.hangfire.io/t/specify-retry-attempts-at-enqueue/11429)

<div class="topic-metadata">

**Author:** [@petermorlion](https://discuss.hangfire.io/u/petermorlion)\
**Replies:** 0\
**Last updated:** [May 20, 2026, 9:55am UTC](https://discuss.hangfire.io/t/specify-retry-attempts-at-enqueue/11429 "2026-05-20T09:55:57Z")

</div>

I’m looking for a way to specify the retry attempts when I enqueue my job. I know it’s possible with an attribute on the job class, but I need it to be variable, i.e. I don’t know at compile time what the number of retri…

---

## [Overwhelming numbers in Enqueue](https://discuss.hangfire.io/t/overwhelming-numbers-in-enqueue/11412)

<div class="topic-metadata">

**Author:** [@fairking](https://discuss.hangfire.io/u/fairking)\
**Replies:** 1\
**Last updated:** [May 19, 2026, 7:53am UTC](https://discuss.hangfire.io/t/overwhelming-numbers-in-enqueue/11412 "2026-05-19T07:53:25Z")

</div>

After I upgraded Hangfire I started notice I have a lot of Enqueue jobs numbers. I am not sure what is going on. I tried to delete them and now they shown as deleted. Anyone can explain please what does it mean? I am con…

---

## [Searching successful jobs in the Hangfire database - some sample SQL code](https://discuss.hangfire.io/t/searching-successful-jobs-in-the-hangfire-database-some-sample-sql-code/11422)

<div class="topic-metadata">

**Author:** [@philipd](https://discuss.hangfire.io/u/philipd)\
**Replies:** 3\
**Last updated:** [April 27, 2026, 6:48pm UTC](https://discuss.hangfire.io/t/searching-successful-jobs-in-the-hangfire-database-some-sample-sql-code/11422 "2026-04-27T18:48:25Z")

</div>

Note: The following is incomplete and unofficial; just something that I have been experimenting with for my own purposes, and that might be useful to others. I have seen occasional requests for the ability to search for…

---

## [Redis read replica usage](https://discuss.hangfire.io/t/redis-read-replica-usage/11421)

<div class="topic-metadata">

**Author:** [@cliff.wakefield](https://discuss.hangfire.io/u/cliff.wakefield)\
**Replies:** 2\
**Last updated:** [April 7, 2026, 11:14pm UTC](https://discuss.hangfire.io/t/redis-read-replica-usage/11421 "2026-04-07T23:14:06Z")

</div>

We operate Hangfire using Hangfire.Pro.Redis against a Redis OSS 7.x Elasticache replication group with a master and a single read replica. We are still using Hangfire.AspNetCore 1.7.37. and hence are using Hangfire.Pro…

---

## [Suggestion for added code in LogEverythingAttribute class, to log added error details](https://discuss.hangfire.io/t/suggestion-for-added-code-in-logeverythingattribute-class-to-log-added-error-details/11417)

<div class="topic-metadata">

**Author:** [@philipd](https://discuss.hangfire.io/u/philipd)\
**Replies:** 0\
**Last updated:** [March 31, 2026, 12:47pm UTC](https://discuss.hangfire.io/t/suggestion-for-added-code-in-logeverythingattribute-class-to-log-added-error-details/11417 "2026-03-31T12:47:43Z")

</div>

I am using the “LogEverythingAttribute” class from Using Job Filters — Hangfire Documentation and I have added some code (specifically in the “OnStateElection” method) to log more details about errors. The following cod…

---

## [Housekeeping on hangfire database](https://discuss.hangfire.io/t/housekeeping-on-hangfire-database/11410)

<div class="topic-metadata">

**Author:** [@stevescuba](https://discuss.hangfire.io/u/stevescuba)\
**Replies:** 1\
**Last updated:** [March 31, 2026, 4:00am UTC](https://discuss.hangfire.io/t/housekeeping-on-hangfire-database/11410 "2026-03-31T04:00:46Z")

</div>

We have noticed that the hangfire database has a huge number of records, how would we purge these records, are there any gotchas? what would be the impact of doing this manually, should hangfire do this automatically

---

## [When we can use de item "L" for last elements in a cron job? Version Hangfire1.8.14](https://discuss.hangfire.io/t/when-we-can-use-de-item-l-for-last-elements-in-a-cron-job-version-hangfire1-8-14/11416)

<div class="topic-metadata">

**Author:** [@PioPioPiola](https://discuss.hangfire.io/u/PioPioPiola)\
**Replies:** 1\
**Last updated:** [March 30, 2026, 3:38pm UTC](https://discuss.hangfire.io/t/when-we-can-use-de-item-l-for-last-elements-in-a-cron-job-version-hangfire1-8-14/11416 "2026-03-30T15:38:54Z")

</div>

I’m programming a Job that should execute it the last day at every month, and I want to know if the version of Hangfire tha we have, supports that expression. This is what I want to do: RecurringJob.AddOrUpdate( …

---

## [Hangfire - Search for a record](https://discuss.hangfire.io/t/hangfire-search-for-a-record/11411)

<div class="topic-metadata">

**Author:** [@stevescuba](https://discuss.hangfire.io/u/stevescuba)\
**Replies:** 1\
**Last updated:** [February 14, 2026, 7:27am UTC](https://discuss.hangfire.io/t/hangfire-search-for-a-record/11411 "2026-02-14T07:27:33Z")

</div>

How do we search for a record in the hangfire database that has not been expired in C# and set that record as expired as we had no dashboard due to Hangfire trying to run the same job due to no expiry date?

---

## [Adding Custom State to Dashboard Jobs View](https://discuss.hangfire.io/t/adding-custom-state-to-dashboard-jobs-view/11413)

<div class="topic-metadata">

**Author:** [@jrpharis](https://discuss.hangfire.io/u/jrpharis)\
**Replies:** 0\
**Last updated:** [February 2, 2026, 7:37pm UTC](https://discuss.hangfire.io/t/adding-custom-state-to-dashboard-jobs-view/11413 "2026-02-02T19:37:01Z")

</div>

I’ve implemented a custom state as described in the IState documentation, and implemented a filter using IElectStateFilter and JobFilterAttribute. Functionally everything looks good, and I can find jobs that have been se…

---

## [Hangfire - delete record / expiry record](https://discuss.hangfire.io/t/hangfire-delete-record-expiry-record/11409)

<div class="topic-metadata">

**Author:** [@stevescuba](https://discuss.hangfire.io/u/stevescuba)\
**Replies:** 0\
**Last updated:** [January 30, 2026, 11:59am UTC](https://discuss.hangfire.io/t/hangfire-delete-record-expiry-record/11409 "2026-01-30T11:59:44Z")

</div>

Is there a way to delete a record in the hangfire database or a way to know how to expire a record I can see the set command but not the parameter to locate the record The record in hangfire did not receive its expiryA…

---

## [.net 10 and blazor app, hangfire community vs hangfire pro](https://discuss.hangfire.io/t/net-10-and-blazor-app-hangfire-community-vs-hangfire-pro/11407)

<div class="topic-metadata">

**Author:** [@murphymj5209](https://discuss.hangfire.io/u/murphymj5209)\
**Replies:** 0\
**Last updated:** [January 27, 2026, 2:08am UTC](https://discuss.hangfire.io/t/net-10-and-blazor-app-hangfire-community-vs-hangfire-pro/11407 "2026-01-27T02:08:19Z")

</div>

I am a newbie to hangfire, i have a solution that is blazor .net 10 backend, works with hangfire community, the current version. I know of some of the limitations of the community, but the hangfire pro has a few items I…

---

## [Hangfire.Pro.Redis Valkey support](https://discuss.hangfire.io/t/hangfire-pro-redis-valkey-support/11404)

<div class="topic-metadata">

**Author:** [@cliff.wakefield](https://discuss.hangfire.io/u/cliff.wakefield)\
**Replies:** 0\
**Last updated:** [January 9, 2026, 12:42am UTC](https://discuss.hangfire.io/t/hangfire-pro-redis-valkey-support/11404 "2026-01-09T00:42:01Z")

</div>

We have been using Hangfire.Pro.Redis for quite sometime on Redis 6.x hosted using AWS Elasticache for quite sometime. AWS is offering reduced pricing for AWS Elasticache Valkey verse Redis nowadays and we would like to…

---

## [Dashboard returns 403 on stats call](https://discuss.hangfire.io/t/dashboard-returns-403-on-stats-call/7831)

<div class="topic-metadata">

**Author:** [@Jeff\_Posey](https://discuss.hangfire.io/u/Jeff_Posey)\
**Replies:** 6\
**Last updated:** [December 11, 2025, 7:10pm UTC](https://discuss.hangfire.io/t/dashboard-returns-403-on-stats-call/7831 "2025-12-11T19:10:24Z")

</div>

Hi all, I’m running HF in .net core 3.1 and when I navigate to the dashboard it will load correctly, but all calls to the /stats endpoint returns 403. I have setup the authorization filter to always return true and have…

---

## [Hangfire Multi-Tenant Architecture: Per-Tenant Recurring Jobs vs. Dynamic Enqueueing at Scale](https://discuss.hangfire.io/t/hangfire-multi-tenant-architecture-per-tenant-recurring-jobs-vs-dynamic-enqueueing-at-scale/11400)

<div class="topic-metadata">

**Author:** [@Jeff\_Posey](https://discuss.hangfire.io/u/Jeff_Posey)\
**Replies:** 0\
**Last updated:** [December 10, 2025, 2:54pm UTC](https://discuss.hangfire.io/t/hangfire-multi-tenant-architecture-per-tenant-recurring-jobs-vs-dynamic-enqueueing-at-scale/11400 "2025-12-10T14:54:01Z")

</div>

We have a multi-tenant SaaS application using Hangfire with Redis as the job storage engine. We’re currently running \>50k recurring jobs across ~13k tenants and experiencing Redis CPU pressure after adding recent jobs. C…

---

## [Best configuration for Hangfire Deployment](https://discuss.hangfire.io/t/best-configuration-for-hangfire-deployment/11372)

<div class="topic-metadata">

**Author:** [@matteo\_rigoni](https://discuss.hangfire.io/u/matteo_rigoni)\
**Replies:** 3\
**Last updated:** [December 9, 2025, 5:35pm UTC](https://discuss.hangfire.io/t/best-configuration-for-hangfire-deployment/11372 "2025-12-09T17:35:35Z")

</div>

HI, i use Hangfire from several years, in differnt way (IIs, widnwos service and some experiment as docker). I need to use it i a very large projects with milion of jobs at week. Based on you experience which is best de…

---

## [Deleted Jobs not being removed](https://discuss.hangfire.io/t/deleted-jobs-not-being-removed/11398)

<div class="topic-metadata">

**Author:** [@MFonnesbeck](https://discuss.hangfire.io/u/MFonnesbeck)\
**Replies:** 0\
**Last updated:** [November 12, 2025, 5:23pm UTC](https://discuss.hangfire.io/t/deleted-jobs-not-being-removed/11398 "2025-11-12T17:23:30Z")

</div>

I have configured the expiration time of jobs to be 6 months. Failed jobs I see are never removed so that you can rerun them or delete them. However, there are some jobs that have been “deleted” and show up in the Delete…

---

## [Can we use entity framework's database transaction for enqueing jobs?](https://discuss.hangfire.io/t/can-we-use-entity-frameworks-database-transaction-for-enqueing-jobs/10546)

<div class="topic-metadata">

**Author:** [@meinsiedler](https://discuss.hangfire.io/u/meinsiedler)\
**Replies:** 1\
**Last updated:** [October 31, 2025, 12:02pm UTC](https://discuss.hangfire.io/t/can-we-use-entity-frameworks-database-transaction-for-enqueing-jobs/10546 "2025-10-31T12:02:27Z")

</div>

We are evaluating Hangfire as outbox pattern in our application using Entity Framework Core. In our business logic we want to save entities to our database and additionally enqueue a Hangfire background job. The enqueui…

---

## [Configuring a Sliding Window for 5 requests per second](https://discuss.hangfire.io/t/configuring-a-sliding-window-for-5-requests-per-second/11390)

<div class="topic-metadata">

**Author:** [@Arcanic](https://discuss.hangfire.io/u/Arcanic)\
**Replies:** 0\
**Last updated:** [October 28, 2025, 1:30pm UTC](https://discuss.hangfire.io/t/configuring-a-sliding-window-for-5-requests-per-second/11390 "2025-10-28T13:30:31Z")

</div>

I have a Job that makes a single request to a webserver, and that webserver only allows 5 requests per second. This has lead me to the following SlidingWindowOptions: new SlidingWindowOptions(limit: 5, interval: TimeSpa…

---

## [Hangfire: BackgroundJob.Schedule is changing time](https://discuss.hangfire.io/t/hangfire-backgroundjob-schedule-is-changing-time/11384)

<div class="topic-metadata">

**Author:** [@reed09](https://discuss.hangfire.io/u/reed09)\
**Replies:** 1\
**Last updated:** [October 27, 2025, 8:16pm UTC](https://discuss.hangfire.io/t/hangfire-backgroundjob-schedule-is-changing-time/11384 "2025-10-27T20:16:35Z")

</div>

I am trying to schedule a job at 10/25/2025 8:00:00 AM but in hangfire console it shows 10/25/2025 9:00:00 AM. This is ad-hoc job so time zone is provided. Is there something that I am missing or hangfire automatically d…

---

## [Why won't Hangfire execute the Child-Batch?](https://discuss.hangfire.io/t/why-wont-hangfire-execute-the-child-batch/11386)

<div class="topic-metadata">

**Author:** [@Lateralus79](https://discuss.hangfire.io/u/Lateralus79)\
**Replies:** 1\
**Last updated:** [October 14, 2025, 5:13am UTC](https://discuss.hangfire.io/t/why-wont-hangfire-execute-the-child-batch/11386 "2025-10-14T05:13:36Z")

</div>

public void MapEndpoint(IEndpointRouteBuilder app) { app.MapGet("/hangfireTest", async (NectaContext context, \[FromServices\] VendorCatalogHttpClient httpClient) =\> { var parentId = BatchJob.StartNew(ba…

---

## [Access "Time" parameter from CreateContext from within my task](https://discuss.hangfire.io/t/access-time-parameter-from-createcontext-from-within-my-task/11377)

<div class="topic-metadata">

**Author:** [@Dylan\_Pritchard](https://discuss.hangfire.io/u/Dylan_Pritchard)\
**Replies:** 1\
**Last updated:** [September 5, 2025, 8:29pm UTC](https://discuss.hangfire.io/t/access-time-parameter-from-createcontext-from-within-my-task/11377 "2025-09-05T20:29:58Z")

</div>

I know that I can get access to the PerformContext as a parameter into my execution method, but I am hoping to get the “Time” parameter associated to the CreateContext. It would be incredibly beneficial for me to know w…

---

## [Enqueue with specified queue name](https://discuss.hangfire.io/t/enqueue-with-specified-queue-name/11371)

<div class="topic-metadata">

**Author:** [@Jeff\_Posey](https://discuss.hangfire.io/u/Jeff_Posey)\
**Replies:** 3\
**Last updated:** [August 20, 2025, 3:56am UTC](https://discuss.hangfire.io/t/enqueue-with-specified-queue-name/11371 "2025-08-20T03:56:45Z")

</div>

I’m trying to enqueue a job and override the queue that is set in the attribute ie BackgroundJob.Enqueue(“new\_queue”, x =\> x.Execute(null, x, y)) and I’m getting the error: System.NotSupportedException: Current storag…

---

## [Prevent a server from enqueuing recurring jobs from queues it doesn't process](https://discuss.hangfire.io/t/prevent-a-server-from-enqueuing-recurring-jobs-from-queues-it-doesnt-process/11366)

<div class="topic-metadata">

**Author:** [@juliapais](https://discuss.hangfire.io/u/juliapais)\
**Replies:** 0\
**Last updated:** [August 7, 2025, 4:51pm UTC](https://discuss.hangfire.io/t/prevent-a-server-from-enqueuing-recurring-jobs-from-queues-it-doesnt-process/11366 "2025-08-07T16:51:13Z")

</div>

Hi everyone, I have a Hangfire setup with a shared database and multiple Hangfire servers, each responsible for processing a specific queue only. For example: 'Server1 configuration Dim options1 = New BackgroundJobSe…

---

## [Pro License terms](https://discuss.hangfire.io/t/pro-license-terms/11362)

<div class="topic-metadata">

**Author:** [@Craig\_van\_Nieuwkerk](https://discuss.hangfire.io/u/Craig_van_Nieuwkerk)\
**Replies:** 1\
**Last updated:** [August 1, 2025, 3:21am UTC](https://discuss.hangfire.io/t/pro-license-terms/11362 "2025-08-01T03:21:16Z")

</div>

Looking at the pricing page The Pro License says it is Perpetual (one payment) but then says Per Year next to the price. Is it once off to get the product and yearly to get updates (optional). Is this correct?

---

## [How to modify wokercount or enable and remove recurring jobs without downtime](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350)

<div class="topic-metadata">

**Author:** [@Jiaxiang\_Li](https://discuss.hangfire.io/u/Jiaxiang_Li)\
**Replies:** 2\
**Last updated:** [July 26, 2025, 2:31am UTC](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350 "2025-07-26T02:31:39Z")

</div>

I’m using: Hangfire.AspNetCore Hangfire.Autofac FaceIT.Hangfire.Tags.Redis.StackExchange I have some long-running, resource-intensive tasks. Therefore, I need to: Dynamically adjust the WorkerCount based on system l…

---

## [Dynamically change the crontab of recurring jobs](https://discuss.hangfire.io/t/dynamically-change-the-crontab-of-recurring-jobs/11357)

<div class="topic-metadata">

**Author:** [@ViolentRage](https://discuss.hangfire.io/u/ViolentRage)\
**Replies:** 1\
**Last updated:** [July 22, 2025, 2:54pm UTC](https://discuss.hangfire.io/t/dynamically-change-the-crontab-of-recurring-jobs/11357 "2025-07-22T14:54:09Z")

</div>

Good morning everyone, has anyone ever tried to edit the recurring jobs crontab? I tried, unsuccessfully though. In two words, I run Hangfire in a docker container, using a homemade Nuget that allows to read some star…

[Next page](https://discuss.hangfire.io/c/question/20.md?page=1)
