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:
1) Try to get jobs with IntervalStartJob
2) If there is no jobs after JobThrottleSettings.JobRetrievalAttempts we increase IntervalStartJobs by JobThrottleSettings.IntervalMultiplier
3) To prevent massive IntervalStartJob, there will be JobThrottleSettings.MaxJobThrottleInterval so we won't wait too long
4) 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 it I suggest that we add another settingJobThrottleSettings
that will dynamically increaseIntervalStartJob
if there are no jobs available for a certain periodAlgorithm: 1) Try to get jobs with
IntervalStartJob
2) If there is no jobs afterJobThrottleSettings.JobRetrievalAttempts
we increaseIntervalStartJobs
byJobThrottleSettings.IntervalMultiplier
3) To prevent massiveIntervalStartJob
, there will beJobThrottleSettings.MaxJobThrottleInterval
so we won't wait too long 4) After we successfully retrieve a job,IntervalStartJob
will reset to its original value