Kck.BackgroundJobs.Quartz 4.8.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Kck.BackgroundJobs.Quartz --version 4.8.0
                    
NuGet\Install-Package Kck.BackgroundJobs.Quartz -Version 4.8.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kck.BackgroundJobs.Quartz" Version="4.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kck.BackgroundJobs.Quartz" Version="4.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Kck.BackgroundJobs.Quartz" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kck.BackgroundJobs.Quartz --version 4.8.0
                    
#r "nuget: Kck.BackgroundJobs.Quartz, 4.8.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Kck.BackgroundJobs.Quartz@4.8.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Kck.BackgroundJobs.Quartz&version=4.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Kck.BackgroundJobs.Quartz&version=4.8.0
                    
Install as a Cake Tool

Kck.BackgroundJobs.Quartz

Quartz.NET-backed IJobScheduler implementation for fire-and-forget, delayed and cron-scheduled background jobs.

Installation

dotnet add package Kck.BackgroundJobs.Quartz

Quick Start

using Kck.BackgroundJobs.Abstractions;

// Program.cs
builder.Services.AddKckBackgroundJobsQuartz();   // in-memory store, hosted service waits for running jobs on shutdown
builder.Services.AddKckJob<DailyReportJob>();     // jobs are resolved from DI in a new scope per execution

// Define a job
public sealed class DailyReportJob(ILogger<DailyReportJob> logger) : IBackgroundJob
{
    public Task ExecuteAsync(CancellationToken ct = default)
    {
        logger.LogInformation("Daily report");
        return Task.CompletedTask;
    }
}

// Schedule it — 5-field crontab (converted for Quartz) or a Quartz expression (seconds first, "0 0 8 * * ?")
public sealed class ReportSetup(IJobScheduler scheduler)
{
    public Task StartAsync(CancellationToken ct) =>
        scheduler.AddOrUpdateRecurringAsync<DailyReportJob>("daily-report", "0 8 * * *", ct); // every day at 08:00
}

IJobScheduler also offers EnqueueAsync<TJob>() (run now), ScheduleAsync<TJob>(delay) and RemoveRecurringAsync(jobId).

Configuration

Pass a Quartz.NET 4 builder callback for anything beyond the defaults (persistent store, thread pool, misfire handling):

builder.Services.AddKckBackgroundJobsQuartz(q =>
{
    q.UseDefaultThreadPool(tp => tp.MaxConcurrency = 10);
});

See the Quartz.NET 4 documentation for the builder API. Quartz 4 changed some defaults (for example cron triggers without a time zone use DefaultTimeZone); check the Quartz migration guide when upgrading from Kck 3.x.

Resources

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Kck.BackgroundJobs.Quartz:

Package Downloads
Kck.Bundle.WorkerService

Opinionated .NET Worker Service starter pack. Registers Serilog, health checks, InMemory event bus, and the Quartz background job scheduler in a single call.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 277 11/2/2026
4.8.0 584 10/31/2026
Loading failed