Koto.Scheduling
0.5.0-preview.6
See the version list below for details.
dotnet add package Koto.Scheduling --version 0.5.0-preview.6
NuGet\Install-Package Koto.Scheduling -Version 0.5.0-preview.6
<PackageReference Include="Koto.Scheduling" Version="0.5.0-preview.6" />
<PackageVersion Include="Koto.Scheduling" Version="0.5.0-preview.6" />
<PackageReference Include="Koto.Scheduling" />
paket add Koto.Scheduling --version 0.5.0-preview.6
#r "nuget: Koto.Scheduling, 0.5.0-preview.6"
#:package Koto.Scheduling@0.5.0-preview.6
#addin nuget:?package=Koto.Scheduling&version=0.5.0-preview.6&prerelease
#tool nuget:?package=Koto.Scheduling&version=0.5.0-preview.6&prerelease
Koto.Scheduling
Quartz.NET-based scheduled jobs and batch processing for Koto microservices.
What's included
| Type | Purpose |
|---|---|
IScheduledJob |
Marker interface: JobId + ExecuteAsync |
ScheduledJobBase |
Quartz IJob wrapper with structured logging and error handling |
BatchJobBase<TItem> |
Cursor-based batch processor: fetch → process page by page |
AddKotoScheduling(builder => ...) |
One-liner DI registration |
Setup
// Program.cs
builder.Services.AddKotoScheduling(scheduling =>
{
scheduling.AddJob<SendDailyDigestJob>("0 0 8 * * ?"); // 08:00 every day
scheduling.AddJob<CleanupExpiredTokensJob>("0 */15 * * * ?"); // every 15 min
// For HPA / multi-pod: enable PostgreSQL clustered job store
scheduling.UseJobStore(builder.Configuration.GetConnectionString("QuartzDb")!);
});
Implementing a scheduled job
public class SendDailyDigestJob : ScheduledJobBase
{
private readonly IUserRepository _users;
private readonly IEmailService _email;
public override string JobId => "orders.send-daily-digest";
public SendDailyDigestJob(
IUserRepository users,
IEmailService email,
ILogger<ScheduledJobBase> logger) : base(logger)
{
_users = users;
_email = email;
}
public override async Task ExecuteAsync(CancellationToken ct)
{
var users = await _users.GetUsersWithPendingDigestAsync(ct);
foreach (var user in users)
await _email.SendDigestAsync(user, ct);
}
}
Implementing a batch job
public class SyncProductsJob : BatchJobBase<ProductDto>
{
public override string JobId => "catalog.sync-products";
protected override int BatchSize => 50;
public SyncProductsJob(ILogger<BatchJobBase<ProductDto>> logger) : base(logger) { }
protected override Task<IReadOnlyList<ProductDto>> FetchBatchAsync(
int offset, int batchSize, CancellationToken ct)
=> _api.GetProductsAsync(offset, batchSize, ct);
protected override Task ProcessItemAsync(ProductDto item, CancellationToken ct)
=> _repo.UpsertAsync(item, ct);
}
Distributed locking (HPA / multi-pod)
Call .UseJobStore(connectionString) to switch Quartz to PostgreSQL-backed clustered mode.
Only one pod executes each trigger at a time — no additional distributed lock needed.
Requires the Quartz PostgreSQL schema
to be applied to the database.
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Quartz (>= 3.18.1)
- Quartz.Extensions.Hosting (>= 3.18.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0-preview.9 | 46 | 11/30/2026 |
| 0.5.0-preview.8 | 55 | 11/30/2026 |
| 0.5.0-preview.7 | 55 | 11/29/2026 |
| 0.5.0-preview.6 | 49 | 11/29/2026 |
| 0.5.0-preview.5 | 54 | 11/29/2026 |
| 0.5.0-preview.4 | 52 | 11/29/2026 |
| 0.5.0-preview.3 | 54 | 11/29/2026 |
| 0.5.0-preview.2 | 56 | 11/29/2026 |
| 0.5.0-preview.1 | 62 | 11/8/2026 |
| 0.4.0 | 155 | 7/21/2026 |
| 0.3.0-preview.15 | 84 | 7/21/2026 |
| 0.3.0-preview.14 | 81 | 7/21/2026 |
| 0.3.0-preview.13 | 80 | 7/21/2026 |
| 0.3.0-preview.12 | 80 | 7/21/2026 |
| 0.3.0-preview.11 | 80 | 7/21/2026 |
| 0.3.0-preview.10 | 75 | 7/21/2026 |
| 0.3.0-preview.9 | 73 | 7/21/2026 |
| 0.3.0-preview.8 | 95 | 7/21/2026 |
| 0.3.0-preview.7 | 81 | 7/21/2026 |
| 0.3.0-preview.6 | 81 | 7/20/2026 |
0.5.0-preview.6 — bug fix: a service with Marten and the Wolverine outbox did not start (Marten and WolverineFx were built on different major versions of Weasel). Now WolverineFx 6.66.1 and Marten 9.64.0; WolverineFx.RuntimeCompilation comes with Koto. A Wolverine handler taking IRepository and IUnitOfWork works and they share one DbContext. ContractJson() is a new instance per endpoint. Breaking: services referencing WolverineFx move to 6.x. Migration guide: https://github.com/arigatory/Koto/blob/main/docs/migrations/0.4-to-0.5.md