HangfireIO / HangfireIO/Hangfire

Increase the recurring job polling interval for hangfire and enabling/disabling the recurring job process

Open
#775 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

I am trying to create a background processor windows service using hangfire.
I would like to increase the recurring job polling interval to more than 1 minute(hard-coded by default). The reason for doing the same is that recurring polling can affect the performance of the database.
Is there a possibility to enable/disable the hangfire recurring Job feature. This is required in case there are multiple instances of the service installed.
The multiple instances of the service polling the database is also a performance issue

I had tried making changes to the Hangfire.Core to make the polling interval configurable. i have attached the code snips with the issue

![background job server options](https://cloud.githubusercontent.com/assets/16729232/21494769/c8ef30ec-cc39-11e6-9123-5586c5efa755.PNG)
![background job server](https://cloud.githubusercontent.com/assets/16729232/21494767/c8ee88ae-cc39-11e6-836f-60a6ee3d5e0c.PNG)
![new throttler background job server option based throttler](https://cloud.githubusercontent.com/assets/16729232/21494766/c8ee7fa8-cc39-11e6-8e4e-9f5b71421e27.PNG)
![recurring job scheduler](https://cloud.githubusercontent.com/assets/16729232/21494768/c8ef03c4-cc39-11e6-8568-f2139a1a9500.PNG)

Contributor guide

Open the contributing guide

Research direction

Start in Hangfire.Core and review the attached changes around BackgroundJobServerOptions, the background job server, and the recurring job scheduler. Determine the intended configuration for the polling interval and recurring-job enablement, then verify that both behaviors work for multiple service instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.