# How to modify wokercount or enable and remove recurring jobs without downtime

**URL:** <https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350>\
**Category:** question\
**Tags:** recurring, redis, aspnetcore\
**Created:** [July 17, 2025, 6:57am UTC](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350 "2025-07-17T06:57:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jiaxiang\_Li](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/jiaxiang_li/32/4019_2.png) [@Jiaxiang\_Li](https://discuss.hangfire.io/u/Jiaxiang_Li)\
**Post date:** [July 17, 2025, 6:57am UTC](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350/1 "2025-07-17T06:57:32Z")

</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:

1. Dynamically adjust the `WorkerCount` based on system load.
2. Stop or pause certain jobs in emergency situations.

Is there an official way to achieve this with Hangfire?

---

<div class="post-metadata">

**Author:** ![Jiaxiang\_Li](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/jiaxiang_li/32/4019_2.png) [@Jiaxiang\_Li](https://discuss.hangfire.io/u/Jiaxiang_Li)\
**Post date:** [July 17, 2025, 6:58am UTC](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350/2 "2025-07-17T06:58:41Z")

</div>

I would be really happy to hear from you guys.

---

<div class="post-metadata">

**Author:** ![DMinovski](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@DMinovski](https://discuss.hangfire.io/u/DMinovski)\
**Post date:** [July 26, 2025, 2:31am UTC](https://discuss.hangfire.io/t/how-to-modify-wokercount-or-enable-and-remove-recurring-jobs-without-downtime/11350/3 "2025-07-26T02:31:39Z")

</div>

A list of the jobs can be retrieved with the `JobStorage.Current.GetMonitoringApi()`. They can be deleted, but you probably need to add CancellationToken to the method, otherwise the job will be deleted from the queue, but the method will continue running.

> [@How do i cancel an already runnign recurring job?](https://discuss.hangfire.io/t/how-do-i-cancel-an-already-runnign-recurring-job/7850/3):
>
> You can achieve this by using IMonitorinApi and fetch jobs that are processing. Then you can delete them by using IBackgroundJobClient. You need to pass in a cancellationtoken though. public void InitializeJobs() { const string myRecurringJobId = "Ftmch-20"; \_recurringJobManager.AddOrUpdate( myRecurringJobId, Job.FromExpression\<MyJob\>(j =\> j.LongRunningJob(null, CancellationToken.None)), "0/10 \* \* \* \* \*"); } … public class My…
