Currently, the only way to decrease the load on the database is to increase IntervalStartJob, but there might be problems with it
I suggest that we add another setting JobThrottleSettings that will dynamically increase IntervalStartJob if there are no jobs available for a certain period
Algorithm:
- Try to get jobs with
IntervalStartJob
- If there is no jobs after
JobThrottleSettings.JobRetrievalAttempts we increase IntervalStartJobs by JobThrottleSettings.IntervalMultiplier
- To prevent massive
IntervalStartJob, there will be JobThrottleSettings.MaxJobThrottleInterval so we won't wait too long
- After we successfully retrieve a job,
IntervalStartJob will reset to its original value
Currently, the only way to decrease the load on the database is to increase
IntervalStartJob, but there might be problems with itI suggest that we add another setting
JobThrottleSettingsthat will dynamically increaseIntervalStartJobif there are no jobs available for a certain periodAlgorithm:
IntervalStartJobJobThrottleSettings.JobRetrievalAttemptswe increaseIntervalStartJobsbyJobThrottleSettings.IntervalMultiplierIntervalStartJob, there will beJobThrottleSettings.MaxJobThrottleIntervalso we won't wait too longIntervalStartJobwill reset to its original value