Quartz.NETQuartz.NET
Home
Features
Blog
Discussions
NuGet
GitHub
Home
Features
Blog
Discussions
NuGet
GitHub
  • Getting Started

    • Overview
    • Quartz 4 Quick Start
    • Tutorial
      • Using Quartz
      • Jobs And Triggers
      • More About Jobs & JobDetails
      • Job Data
      • More About Triggers
      • Querying Jobs and Triggers
      • Simple Triggers
      • Cron Triggers
      • RecurrenceTrigger
      • Time and TimeProvider
      • Trigger and Job Listeners
      • Scheduler Listeners
      • Job Execution Middleware
      • Job Stores
      • Configuration, Resource Usage and Building a Scheduler
      • Building a Scheduler Without a Host
      • Clustering
      • Execution Groups
      • Node Affinity (Preferred Node)
      • Testing
      • Compile-Time Checks
      • Declaring Jobs with Attributes
      • Delegate Jobs
    • Configuration Reference
    • JSON Configuration
    • Cron Expression Reference
    • Multi-Tenancy
    • Comparison
    • Frequently Asked Questions
    • Best Practices
    • Before You Go Live
    • Operating a Cluster
    • Log Events
    • Tenancy Patterns
    • Database Schema
    • Database Schema Changes
    • Migration Guide
    • Troubleshooting
    • API Documentation
  • How To's
    • One-Off Job
    • Rescheduling Jobs
    • Retrying Failed Jobs
    • Pausing with a Reason
    • Job Continuations
    • Overlap Policy
    • Progress and Execution Logs
    • Multiple Triggers
    • Job Template
    • Running Quartz under Aspire
    • Quartz.NET with Wolverine
    • Coming from Hangfire
    • Coming from TickerQ
    • Embedding Quartz in a Library
    • Running under an External Leader Election
    • Publishing Trimmed and Native AOT
    • Extending Quartz: what is open, what is closed, and how to ask
    • A Job Store of Your Own
    • A Driver Delegate for a New Database
    • Persisting a Custom Trigger Type
    • A Lock Handler of Your Own
  • Packages

    • Quartz Core Additions

      • Jobs
      • Serialization (System.Text.Json)
      • JSON Serialization
      • Plugins
    • Integrations

      • Aspire Integration
      • ASP.NET Core Integration
      • HTTP API
      • HTTP Client
      • Dashboard
      • Hosted Services Integration
      • Microsoft DI Integration
      • Multiple Schedulers with Microsoft DI
      • Observability
      • Redis Lock Handler
      • TimeZoneConverter Integration
    • 3rd Party Plugins for Quartz
  • Quartz 3.x

    • Getting Started

      • Quartz 3 Quick Start
      • Tutorial
        • Using Quartz
        • Library Overview
        • Jobs And Triggers
        • More About Jobs
        • More About Triggers
        • Execution Groups
        • Node Affinity (Preferred Node)
        • Simple Triggers
        • Cron Triggers
        • RecurrenceTrigger
        • Trigger and Job Listeners
        • Scheduler Listeners
        • Job Stores
        • Tuning the Scheduler
        • Configuration, Resource Usage and SchedulerFactory
        • Advanced (Enterprise) Features
      • Configuration Reference
      • JSON Configuration
      • Multi-Tenancy
      • Frequently Asked Questions
      • Best Practices
      • Tenancy Patterns
      • Troubleshooting
      • API Documentation
      • Database Schema
      • Database Schema Changes
      • Migration Guide
      • Miscellaneous Features
    • How To's

      • One-Off Job
      • Multiple Triggers
      • Job Template
      • Using the CronTrigger
      • Rescheduling Jobs
    • Packages

      • Quartz Core Additions

        • Dashboard
        • Jobs
        • Serialization (System.Text.Json)
        • Serialization (Newtonsoft Json.NET)
        • Plugins
      • Integrations

        • ASP.NET Core Integration
        • Hosted Services Integration
        • Microsoft DI Integration
        • Multiple Schedulers with Microsoft DI
        • OpenTelemetry Integration
        • OpenTracing Integration
        • Redis Lock Handler
        • TimeZoneConverter Integration
      • 3rd Party Plugins for Quartz
  • Old Releases

    • Quartz 2.x
      • Quartz 2 Quick Start
      • Tutorial
        • Lesson 1: Using Quartz
        • Lesson 2: Jobs And Triggers
        • Lesson 3: More About Jobs & JobDetails
        • Lesson 4: More About Triggers
        • Lesson 5: SimpleTrigger
        • Lesson 6: CronTrigger
        • Lesson 7: TriggerListeners and JobListeners
        • Lesson 8: SchedulerListeners
        • Lesson 9: JobStores
        • Lesson 10: Configuration, Resource Usage and SchedulerFactory
        • Lesson 11: Advanced (Enterprise) Features
        • Lesson 12: Miscellaneous Features of Quartz
        • CronTrigger Tutorial
      • Configuration Reference
      • Migration Guide
      • API Documentation
    • Quartz 1.x
      • Tutorial
        • Lesson 1: Using Quartz
        • Lesson 2: Jobs And Triggers
        • Lesson 3: More About Jobs & JobDetails
        • Lesson 4: More About Triggers
        • Lesson 5: SimpleTrigger
        • Lesson 6: CronTrigger
        • Lesson 7: TriggerListeners and JobListeners
        • Lesson 8: SchedulerListeners
        • Lesson 9: JobStores
        • Lesson 10: Configuration, Resource Usage and SchedulerFactory
        • Lesson 11: Advanced (Enterprise) Features
        • Lesson 12: Miscellaneous Features of Quartz
      • API Documentation
  • License

Overlap Policy

A trigger's overlap policy says what happens when one of its firings comes due while an earlier firing of the same trigger is still running. From 4.3.

builder.Services.AddQuartz(q =>
{
    q.AddJob<ReportJob>(j => j.WithIdentity("report"));

    q.AddTrigger(t => t
        .ForJob("report")
        .WithIdentity("every-five-minutes")
        .WithCronSchedule("0 0/5 * * * ?")
        // A report that is still running when the next one is due: drop the next one.
        .WithOverlapPolicy(OverlapPolicy.Skip));
});

The policies

OverlapPolicyThe due firing
DefaultStarts beside the running one. What every trigger did before 4.3
SkipIs dropped; the trigger moves on to its next occurrence
BufferOneWaits for the running one to end, then starts. At most one is kept
CancelPreviousStarts; the running one is interrupted
AllowAllStarts beside the running one, stated explicitly
  • Only the trigger's own firings count. Another trigger of the same job running is not an overlap.
  • A retry is never skipped, held or cancelled: it continues an occurrence that already started.
  • [DisallowConcurrentExecution] wins. While one of the job's firings runs, none of its triggers fires, whatever the policy says; a slot missed meanwhile is the misfire instruction's, as it always was.

Skip

  • The dropped occurrence is advanced past as a firing would, so it is not a misfire: the misfire instruction is not applied, TriggerMisfired is not raised, and the misfire count does not include it.
  • ITriggerListener.TriggerSkipped is raised, with NextFireTimeUtc still the dropped occurrence.
  • With execution history on, the skip is a misfire-history row with Reason = MisfireReason.Overlap:
PagedResult<MisfireHistoryEntry> page = await history.QueryMisfires(
    new MisfireHistoryQuery { SchedulerName = schedulerName, Take = 50 });

foreach (MisfireHistoryEntry entry in page.Items)
{
    // Overlap: the trigger's Skip policy dropped the firing. Missed: a misfire.
    Console.WriteLine($"{entry.TriggerName} {entry.ScheduledFireTimeUtc:u} {entry.Reason}");
}
  • A trigger whose skipped occurrence was its last is complete; the running firing's completion removes it.
  • Log event 2007 (in memory) or 3043 (persistent store).

BufferOne

While a firing runs, its trigger is Blocked, exactly as a [DisallowConcurrentExecution] job's triggers are, but for this trigger alone. When the firing ends:

The occurrence that came due wasThen
Within the misfire thresholdIt fires now
Past the misfire thresholdThe trigger's misfire instruction decides. A cron trigger's default fires once, now

The misfire threshold is the store's MisfireThreshold: one minute for the persistent store, five seconds in memory. Pausing and resuming a buffered trigger keeps it held until the firing ends.

CancelPrevious

The running firing's cancellation token is signalled and the new firing starts. Cancellation is cooperative, so the job has to watch its token:

public sealed class ReportJob : IJob
{
    public async ValueTask Execute(IJobExecutionContext context, CancellationToken cancellationToken = default)
    {
        foreach (int page in Enumerable.Range(1, 40))
        {
            // CancelPrevious signals this token when the next firing starts; a job that ignores it
            // runs on beside the new one.
            cancellationToken.ThrowIfCancellationRequested();
            await RenderPage(page, cancellationToken);
        }
    }

    private static Task RenderPage(int page, CancellationToken cancellationToken) => Task.Delay(100, cancellationToken);
}
The running firing is onThen
This nodeIt is interrupted: JobInterrupted is raised, and log event 1037
Another node of a clusterIt cannot be interrupted from here, so the trigger waits for it, as BufferOne; log event 3044

A job that ignores its token runs on beside the new firing.

Change a policy

TriggerDetailsUpdate.WithOverlapPolicy, or the same trigger rebuilt with WithOverlapPolicy:

// Decides from the next firing that comes due; the running one keeps its own.
await scheduler.UpdateTriggerDetails(
    new TriggerKey("every-five-minutes"),
    new TriggerDetailsUpdate().WithOverlapPolicy(OverlapPolicy.BufferOne));
  • The new policy decides from the next firing that comes due. A firing already running keeps what it started with, and one held behind it under BufferOne still starts when it ends.
  • A trigger given CancelPrevious while a firing of it that started under another policy runs on another node fires beside that firing rather than waiting for it, until no firing of it is running.

Where it is set

WhereHow
CodeTriggerBuilder.WithOverlapPolicy, ITriggerConfigurator.WithOverlapPolicy
quartz_jobs.xml<overlap-policy>Skip</overlap-policy>, after continuation-condition
appsettings.json Quartz:Schedule, quartz_jobs.json"OverlapPolicy": "Skip"
HTTP APIoverlapPolicy on the trigger body and on PATCH …/triggers/{group}/{name}
DashboardThe trigger's page shows it

Names are read in any case. Anything else is refused as the file is read.

Persistent store

  • The policy is QRTZ_TRIGGERS.OVERLAP_POLICY. Run 4.3/add_overlap_policy_<db>.sql first; a 4.3 node refuses to start without it.
  • The misfire-history reason is QRTZ_MISFIRE_HISTORY.REASON, added by the optional 4.3/add_misfire_reason_<db>.sql, which only a store with UseExecutionHistory() needs.
  • Roll every node to 4.3 before giving a trigger a policy. A 4.2 node ignores the column and fires the trigger as Default does, overlapping.
  • Every decision is made under the TRIGGER_ACCESS lock, so Skip drops an occurrence once cluster-wide.
Help us by improving this page!
Last Updated: 9/27/26, 6:01 PM
Contributors: Marko Lahma, Claude Opus 5.5
Prev
Job Continuations
Next
Progress and Execution Logs