Change check in interval as config option #1331
-
I apologize if this is already possible or not possible at all. We are using clustering with sql server and I see the check in interval is hardcoded at 7500 milliseconds. For our use case we only need to run jobs during a specific time span each day so each instance checking in with the DB so often is wasteful, unless I'm missing something (entirely possible). Would a configuration option to change that interval be possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What you observe as hard-coded value is actually a configurable one. Quartz can inject values based on writable properties and in this casse the default can be overridden with a property:
Or with DI configuration: q.UsePersistentStore(s =>
{
// your code configuring
s.UseClustering(c =>
{
c.CheckinInterval = TimeSpan.FromSeconds(20);
});
}); |
Beta Was this translation helpful? Give feedback.
What you observe as hard-coded value is actually a configurable one. Quartz can inject values based on writable properties and in this casse the default can be overridden with a property:
Or with DI configuration: