HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.43k stars 1.7k forks source link

Lightweight server dispatchers #2461

Open g0dm0d3 opened 3 weeks ago

g0dm0d3 commented 3 weeks ago

Hi. We're using multiple servers (1 full + N lightweight), and it looks like that there are not enough settings for flexible configuration of a lightweight server.

For example: we want to turn on SqlServerHeartbeatProcess dispatcher (so that jobs can run longer than SlidingInvisibilityTimeout), but at the same time we want RecurringJobScheduler/DelayedJobScheduler to be turned on a full server only.

Currently there is single setting BackgroundJobServerOptions.IsLightweightServer which turns on storage-related processes AND recurring/delayed job schedulers,

can it be split into multiple settings ?

Thanks!