Tuning the Scheduler

Property
Scheduler NameThe instance name, used when clustering
Scheduler IdThe instance id. Can be auto-generated
Max Batch Sizemax number of jobs to run at one time
InterruptJobsOnShutdown..
InterruptJobsOnShutdownWithWait..
BatchTriggerAcquisitionFireAheadTimeWindow..

Microsoft Hosting Extensions

var host = Host.CreateDefaultBuilder()
    .ConfigureServices(services => 
    {
        services.AddQuartz(opt => 
        {
            opt.SchedulerId = "";
            opt.SchedulerName = "";
            opt.MaxBatchSize = "";
            opt.InterruptJobsOnShutdown = true;
            opt.InterruptJobsOnShutdownWithWait = true;
            opt.BatchTriggerAcquisitionFireAheadTimeWindow = TimeSpan.Zero;
        });
    })
    .Build();

Building By Hand

var scheduler = ScheduleBuilder().Create()
    .WithMisfireThreshold(TimeSpan.FromDays(1))
    .WithId("")
    .WithName("")
    .WithMaxBatchSize(2)
    .WithInterruptJobsOnShutdown(true)
    .WithInterruptJobsOnShutdownWithWait(true)
    .WithBatchTriggerAcquisitionFireAheadTimeWindow(TimeSpan.FromMilliseconds(1))
    .Build();