Update dependency Quartz.AspNetCore to v4 - #1373
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
September 13, 2026 13:28
82c6548 to
125ee2e
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
September 25, 2026 19:17
f7f4f7c to
7c5ccc0
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
3 times, most recently
from
September 28, 2026 23:49
bb17b05 to
2cff436
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
from
September 29, 2026 11:56
2cff436 to
9d976b1
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.14.0→4.3.0Release Notes
quartznet/quartznet (Quartz.AspNetCore)
v4.3.0Quartz.NET 4.3 is an additive minor. Every public change is a new type, a new member on a type we own, or a default
interface member, and its schema change is one generated folder,
database/migrations/4.3/, that only addsnullable columns. A released 4.2 node and a 4.3 node share one PostgreSQL database in CI to prove a mixed cluster
runs safely. A 4.2 application upgrades by changing the version and, on a persistent store, running the 4.3 scripts
before the first 4.3 node starts. The headlines: a scheduler on a database fires one-off jobs 2.8× faster than 4.2
at its shipped defaults; a job can be a lambda; and a schedule can be steered while it runs, with an overlap policy,
a pause that says why, backfill, progress and captured logs, and a dashboard that edits. Four new packages put the job store's tables under Weasel, for applications on Marten or Wolverine.
Highlights
Faster where it runs
A job that takes nothing from the container — no constructor parameters, not registered, no
ConfigureScope—is built without a DI scope: 1.84 → 1.68 KB a firing on
RAMJobStore, a little faster too. Every other job keepsits scope exactly as before. (#3866)
RAMJobStorecomputes a cron trigger's next fire time once per firing, not twice, inside its lock. (#3866)A scheduler on a database batches what is already due, out of the box.
MaxBatchSizenow defaults toautomatic: the thread pool's size on a persistent store, clustered or not, and 1 in memory.
Nothing fires early (the fire-ahead window is still zero). On PostgreSQL a backlog of one-off jobs goes from
about 80–91 to 125 firings a second, and from 6.0 to 2.8 commits a firing.
MaxBatchSize = 1restores 4.2.On a cluster, the flip was gated on a 2- and 4-node drain against a durable PostgreSQL: 1.7–2.1× faster on
two nodes and 1.6–2.0× on four, at a lock-wait p99 of about 60 ms. One of four sittings read 0.78× on four nodes
while every lock wait on that shared VM was slower. (#3862, #3900)
Scheduling a job costs less.
ScheduleJobwith a simple trigger allocates 2.76 KB, down from 3.83 KB,and a cron one 3.3 KB, down from 4.6 KB. Scheduling a trigger later than the one the scheduler is already
waiting for no longer wakes it, and listener lists are built when they change, not on every call. (#3865)
A firing that may run beside itself completes without the store's lock. Completions of
concurrent-allowed jobs no longer queue behind each other on
TRIGGER_ACCESS. With the batching default above,one-off jobs on PostgreSQL go from 4.2's 91 to 237 firings a second on the same database: 2.6×. Repeating
triggers fire 1.5–1.9× faster. A 2- and 4-node cluster drains 1.5–1.8× faster at a fifth of the lock wait. A
[DisallowConcurrentExecution]job, a retry, a trigger with continuations, a buffered overlap policy and anon-durable job's last trigger keep the lock. The misfire pass also settles a continuation whose parent no
longer exists. (#3863)
Measured on the release candidate against 4.2.0, alternating sittings on one box and one durable PostgreSQL:
In memory every firing still lands within ±50 ms.
A job can be a lambda
q.ScheduleJob("cleanup", static async (IRepo repo, ILogger<Cleanup> log, CancellationToken ct) => …, t => t.WithCronSchedule("0 0 * * * ?"))— the parameters are what the code needs: the firing (
IJobExecutionContext), its token, its scope(
IServiceProvider), or any service from that scope.AddJob(name, handler)adds a durable one. It is stored asQuartz.Impl.DelegateJobkeyed by the job key, so it persists and clusters like any job; every node registers thehandler. (#3867)
The compiler binds a lambda handler: Quartz's source generator intercepts the call, so a firing resolves its
parameters with generated code, in 14 ns and allocating nothing, instead of by reflection (51.6 ns, 72 B). Any
other handler is bound by reflection once at registration, native AOT included. Delegate jobs (#3882)
See what a running job is doing
context.ReportProgress(40, "copied 400 of 1,000")shows as a progress bar on the dashboard's Currently Executingpage, cluster-wide (written at most once a second, only on change).
q.UseExecutionLogCapture()keeps the log linesa firing writes — bounded by lines and bytes — with its history entry, and a new execution page shows one run with
its outcome, timings, exception and log. Hangfire.Console's job, in the box. Progress and execution logs (#3874)
Say what happens when the last firing is still running
t.WithOverlapPolicy(OverlapPolicy.Skip)drops an occurrence that comes due while the trigger's previous firingruns (recorded in misfire history with reason
Overlap);BufferOneholds one and fires it when the previousends;
CancelPreviousinterrupts the running firing and starts the new one (on another node it holds instead);AllowAlloverlaps freely.Defaultis 4.2's behaviour and costs nothing.[DisallowConcurrentExecution]stillwins. Temporal's and Kubernetes CronJob's knob, per trigger, in every store. New
ITriggerListener.TriggerSkipped. Roll every node to 4.3 before relying on it: a 4.2 node ignores thepolicy. Overlap policy (#3875)
A pause says why
scheduler.PauseTriggerWith(key, new PauseDetails { Reason = "vendor API down", RequestedBy = "ops" })(andPauseJobWith,PauseTriggerGroupsWith,PauseJobGroupsWith,PauseAllWith) records why, who and when;GetTriggerPause(key)reads it back, and the dashboard shows it beside the pause. The HTTP pause routes take anoptional
{ reason, requestedBy }body, with the requester defaulting to the signed-in user.q.PauseTriggerWhenRetriesExhausted()pauses a trigger whose retry policy gave up, with the failure as thereason. A pause without a reason is exactly 4.2's pause. Pausing with a reason (#3879)
The dashboard is a control panel
Edit a trigger in place: description, priority, calendar, misfire instruction, execution group, retry policy,
preferred node, overlap policy and its job data, with each save written to the action log (now with a User column).
Filter the Triggers list by group, name, job, calendar, state and "next fire before", and Jobs by group and name.
Every filter lives in the URL. Select rows to pause, resume or unschedule them together. It works the same over an
HTTP target and a store-attached window. (#3878)
Steer who runs, and how often the same thing is enqueued
limits.ForGroupsWithPrefix("tenant:", 2, ExecutionLimitScope.Cluster)gives every groupunder the prefix its own allowance, cluster-wide;
WithExecutionGroup("tenant:{TenantId}")and[ExecutionGroup("tenant:{TenantId}")]fill the group from the trigger's job data; a one-off saysExecutionGroup = $"tenant:{input.TenantId}". Concurrency keys, which Oban, Sidekiq, JobRunr and BullMQsell in their paid tiers. (#3876)
OneOffJobOptions.OnConflictisThrow(as before),Replace,Keep(enqueue unless it is already pending) or
KeepEarlier(whichever fires first stays). NewIScheduler.ScheduleTrigger(trigger, onConflict)/IJobStore.StoreTrigger(trigger, onConflict)reportwhether the trigger was created, replaced or kept; the HTTP API takes
onConflict. (#3877)Backfill a range you missed
scheduler.Backfill(triggerKey, from, to)schedules one run of the trigger's job for every slot its schedule had in[from, to): calendar applied, the job data, priority, retry policy and execution group carried, the slot readablein the job through
context.GetBackfillSlot(). Re-running the range skips slots still pending,MaxSlots(1,000)and
Spacingbound it, and a future range is refused. Misfire handling is for when the scheduler was down; backfillis for a range you choose. Over the HTTP API it is one audited request (
POST …/triggers/{group}/{name}/backfill),and the dashboard's trigger page has a Backfill dialog. Backfill (#3880)
Quartz's tables under Weasel
Quartz.Weasel.PostgreSQL,Quartz.Weasel.SqlServerand
Quartz.Weasel.SQLiteput the ADO.NET job store's schema under Weasel.db-apply,db-assert,db-patch,resources setupand AutoCreate at startup then create and migrate Quartz's tables beside theapplication's own, instead of
ProvisionSchema()and hand-run scripts. One call on the store:store.UseWeaselForPostgres(),UseWeaselForSqlServer()orUseWeaselForSqlite(). (#3941, #3948)database/tables/,ProvisionSchema()or the migrations reads as unchanged, and a 3.x or 4.2 schema is brought up to 4.3 in place. Tablesare add-only: columns, indexes and keys you added are kept. Every apply takes a lock, so nodes starting together take
turns. On PostgreSQL the tables can instead join a Marten store as a feature schema. (#3941, #3948)
provider. Weasel schema management
Quartz.NET.
Test with a clock you control
Advancing a
FakeTimeProvidernow wakes the scheduler:clock.Advance(TimeSpan.FromHours(1))fires what was duein that hour, with no real waiting.
JobExecutionContextBuilder.For(job).WithTrigger(trigger).FiredAt(when).Build()builds a context for a job's unit test in one line. Testing (#3869)
Declared where it is used
t.WithCronSchedule(cron => cron.AtTime(new TimeOnly(3, 0)).OnWeekdays())configures the expression inline,and
CronExpressionBuilder.Every(TimeSpan.FromMinutes(10))is a clock-anchored interval(
0 0/10 * ? * *). (#3868)q.AddJobLogScope()puts the job, trigger and fire instance on every log line a firing writes. Opt-in:272 bytes a firing when on, nothing when off. (#3870)
[CronTrigger("0 0 2 * * ?", ConfigurationKey = "Jobs:Cleanup:Cron")]reads the schedule from configuration,falling back to the literal the compiler checked; a bad configured value fails at startup. New
QZ1005;QZ1004is now Info, becauseAddDeclaredJobsFrom<Assembly>()is always emitted besideAddDeclaredJobs(). (#3871)[SimpleTrigger("00:10:00")]declares an interval job the way[CronTrigger]declares a cron one:RepeatCount(forever by default), the misfire instruction, priority, execution group and
ConfigurationKey. NewQZ0005refuses an interval that is not a positive
TimeSpanat compile time. (#3924)Database schema
database/migrations/4.3/is the second schema move since 4.0, and like 4.2's it only adds nullable columns, so a4.2 node keeps running beside a 4.3 node while you roll:
add_fire_progress_<dialect>.sqlQRTZ_FIRED_TRIGGERS.PROGRESS,PROGRESS_MESSAGE(#3874)add_execution_log_<dialect>.sqlQRTZ_EXECUTION_HISTORY.EXECUTION_LOG(#3874)add_overlap_policy_<dialect>.sqlQRTZ_TRIGGERS.OVERLAP_POLICY(#3875)add_misfire_reason_<dialect>.sqlQRTZ_MISFIRE_HISTORY.REASON(#3875)add_pause_reason_<dialect>.sqlPAUSE_REASON,PAUSED_BY,PAUSED_ATonQRTZ_TRIGGERS,QRTZ_PAUSED_TRIGGER_GRPS,QRTZ_PAUSED_JOB_GRPS(#3879)Every table script carries the new columns, the memory-optimized and pre-2016 SQL Server scripts included. Each
script is guarded, so running it twice is safe; SQLite's
ADD COLUMNis the exception, as before.A released 4.2.2 node and a 4.3 node share one PostgreSQL database upgraded from the 4.2.0 schema with these scripts,
in every PostgreSQL CI run: 2,000 one-off jobs run exactly once between them, a
[DisallowConcurrentExecution]jobnever overlaps, continuations settle whichever node completes the parent, and the 4.3 columns keep their values
when the 4.2 node fires, updates or resumes the rows around them. A 4.2 node ignores what the new columns mean
(an overlap policy, a pause reason, progress), so roll every node before relying on those. (#3925)
Behaviour changes
QuartzSchedulerOptions.MaxBatchSizedefaults to0, meaning automatic (see above); an explicit value wins asbefore, and
quartz.scheduler.batchTriggerAcquisitionMaxCountstill maps to it. (#3862)Public API
Additions only: 271 lines across
Quartz(+238),Quartz.Dashboard(+23) andQuartz.HttpClient(+10), noneremoved. Every one of the 45 members added to an existing interface (
IScheduler,IJobStore,ITrigger,IJobExecutionContext,ITriggerConfigurator<T>,IQuartzApiClientand others) has a default body, so animplementation or forwarder written against 4.2 compiles and runs unchanged.
OverlapPolicy,MisfireReasonPauseDetails,PauseInfoFireInstanceProgress,ExecutionLogCaptureOptionsTriggerConflict,ScheduleOutcome,ScheduleTriggerResultExecutionGroupAttributeSimpleTriggerAttributeSchedulerBackfillExtensions,BackfillOptions,BackfillResult,JobExecutionContextBackfillExtensionsJobExecutionContextBuilderFour new assemblies:
Quartz.Weasel(no public API),Quartz.Weasel.PostgreSQL(PostgresWeaselOptions,UseWeaselForPostgres,QuartzPostgresFeatureSchema),Quartz.Weasel.SQLite(SqliteWeaselOptions,UseWeaselForSqlite) andQuartz.Weasel.SqlServer(SqlServerWeaselOptions,UseWeaselForSqlServer).The full list, member by member, is the migration guide's Upgrading from 4.2 to 4.3.
Also
contending for the lock row (error 41302 on memory-optimized tables, or deadlock victim 1205 with the default
handler), the handler retried its lock statement inside the dead transaction. SqlClient ran it outside any
transaction, so the store acted without holding
TRIGGER_ACCESS, its statements committed one by one, and thefinal commit failed. The handler now gives up, and the store retries the whole operation in a fresh transaction.
The memory-optimized smoke test now runs on the SQL Server CI leg. New Information event 3048 names a lock
handler that was supplied rather than built. Also in 4.2.2 and 3.22.1. (#3903)
Standby()that lands while the scheduler is between rounds is no longer slept through, so no trigger firesafter
Standby()has returned. Two schedule calls in quick succession no longer hide the earlier, more urgenttrigger, which could run up to
IdleWaitTimelate or misfire, and could fire during standby afterStandby()+ScheduleJob(). Also in 4.2.2 and 3.22.1. (#3901)earlier TickerQ figure (0.21 commits an execution) was read too soon. Its README now says what each engine really
costs the database. (#3861)
measure that second on the scheduler's own clock, so on a
FakeTimeProvidernobody advanced a shutdown couldwait forever. Also in 4.2.1. (#3892)
nvarchar(max)on SQL Server rather than truncated to theparameter's width, and a captured log is bound as a CLOB on Oracle. New
DbMetadata.DbLargeTextTypeName/ConfigureLargeTextParameter, and aUseOracleoverload for the factory path. (#3874)RETRY_ATTEMPT/RETRY_SCHEDULEDhistorycolumns, which they had been missing. A schema created from either under 4.2.0 needs the guarded
ALTERnow onthe schema-changes page. (#3874, #3914)
[DisallowConcurrentExecution]job running on another node. Whentwo nodes reserved triggers of the same such job, the one that lost released its trigger back to waiting, though
the job was still running. With one trigger acquired at a time (4.2's default, or
MaxBatchSize = 1), thattrigger then sat at the head of the node's queue: skipped on every pass, it hid the triggers due behind it, and
the node slept its whole idle wait. Two 4.2.2 nodes fired a once-a-second trigger 17 s late on average. A released
trigger now stays blocked while its job runs, and acquisition reads past a trigger it has to skip. Nothing was
lost or doubled. Found by the new mixed-version cluster test. (#3926)
firing one trigger was recorded as that trigger's failure and the batch committed. On SQL Server and MySQL that
kept the failed trigger's partial writes, which could leave its
[DisallowConcurrentExecution]job's othertriggers
BLOCKEDfor good. On PostgreSQL the error aborted the transaction, so the commit silently rolled backtriggers already reported fired: their jobs ran while the store still held them as reserved. The failing
attempt now rolls back whole and the batch fires again without that trigger, which is reported failed; nothing
changes when nothing fails. New Warning event 3049 names the trigger. (#3931)
trigger at a time. The driver delegate now returns such a row flagged
(
TriggerAcquireResult.ExecutionGroupAtLimit) instead of dropping it, so acquisition reads past it as it doespast its own skips. A delegate that still drops the row behaves as before. (#3928)
tables were capped at four 8-year windows per time zone, so an application that had checked a calendar or an
expression against other decades could leave the current one on the slow path for good (~520 ns instead of
~37 ns a lookup); and one window that failed verification switched the whole zone off. Each window now gets its
own table, built once. (#3918)
column holds in bytes on Oracle and on a Firebird database without a character set, and never between the halves
of a surrogate pair. A history error message used to be cut through the middle of a character on every database.
The database page says how to make Firebird and Oracle count characters. (#3905)
AddJobTimeout's events (1090 timed out, 1091, 1092) are logged through the container's logging. They used to gothrough
LogProvider, so underAddQuartzwithoutSetLogProvideran overrun logged nothing. (#3916)registered every
AddJob<T>/ScheduleJob<T>type, so withUseJobFactory<MyFactory>()building jobs from anothercontainer,
ValidateOnBuildfailedBuild()on dependencies only that factory supplies. The default factory, andone derived from it, register and validate as before; an application's own registration is kept. Code that
resolved a job type from the container behind a custom factory registers it itself. (#3930)
HttpSchedulerescapes every value it puts in a path or a matcher query, so a name with?,#,%,&or aspace reaches the right job, trigger or calendar. A name containing
/, or one that is.or.., cannot survivea URL and is refused with an
ArgumentExceptionnaming it, instead of reaching another route. A decorator overHttpSchedulerbackfills in one request too. (#3917)HttpSchedulersends every call through one route table shared with the server, so a client and the HTTP APIcannot spell a path differently. An error answer without problem details now carries the standard reason
phrase for its status. (#3770)
DisallowConcurrentExecution()by its builder, with no attribute on its type, took two slotsof one acquisition batch on a persistent store; it never ran twice at once, but the second slot was wasted.
Acquisition now reads the stored flag (
TriggerAcquireResult.ConcurrentExecutionDisallowed), and adriver delegate whose own statement does not select it falls back to the type as before. (#3867)
MassTransit.Quartzneeds Quartz.NET 3.x: its range has no upper bound, so NuGet resolves 4.xand the application fails to build (
CS0121) or to start. PinQuartzto[3.22.0, 4.0). (#3872)already due. (#3872)
Dependencies
vulnerability. Test and example projects no longer pin transitively, so a test-only package can move without
moving a floor a consumer inherits. (#3855)
Weasel.Core,Weasel.Postgresql,Weasel.SqlServerandWeasel.Sqlite[9.35.1, 10.0.0), and through them on JasperFx 2.74 and the database driver. No existing package gains adependency; the package count goes from 14 to 18.
Verify32.x: 33 adds a build-time licence check. (#3885)v4.2.4One fix, additive: no public API change and no schema change. It affects a persistent store when a database error hits one trigger of a fire batch.
Fixed
[DisallowConcurrentExecution]job's other triggersBLOCKEDfor good. On PostgreSQL the error aborted the transaction, so the commit silently rolled back triggers already reported fired: their jobs ran while the store still held them as reserved, and could run again after recovery. The failing attempt now rolls back whole, and the batch fires again without that trigger, which is reported failed. Nothing changes when nothing fails. New Warning event 3049 names the trigger. (#3931, #3942)The same fix ships for 3.x in 3.22.3.
Full Changelog: quartznet/quartznet@v4.2.3...v4.2.4
v4.2.3Two fixes, both additive: no public API change and no schema change. The first affects a clustered persistent store that acquires one trigger at a time, which is 4.2's default. The second affects the cron fast path in a process that has asked about other decades.
Fixed
[DisallowConcurrentExecution]job running on another node. When two nodes reserved triggers of the same such job, the node that lost released its trigger back toWAITING, though the job was still running. With one trigger acquired at a time, that trigger then sat at the head of the node's queue. It was skipped on every pass, it hid the triggers due behind it, and the node slept its wholeIdleWaitTime(30 s by default). Two 4.2.2 nodes fired a once-a-second trigger 17 s late on average. A released trigger now staysBLOCKEDwhile its job runs, and acquisition reads past a trigger it has to skip. Nothing was lost or doubled. Found by 4.3's mixed-version cluster test. (#3926, #3932)The acquisition fix ships for 3.x in 3.22.2. 3.x has no cron fast path.
Full Changelog: quartznet/quartznet@v4.2.2...v4.2.3
v4.2.2Three fixes, all additive: no public API change and no schema change. The first two are in the scheduler's loop and affect any scheduler on the real clock. The third affects a SQL Server store under lock contention.
Fixed
Standby()has returned. The scheduler's loop checked whether it was paused before draining its wake-up signal, so aStandby()that landed between the two, most likely while the loop was waiting for a free worker on a busy scheduler, was lost. The round then went on to acquire and fire a trigger due within the nextIdleWaitTime(30 s by default). The loop now checks again after the drain. (#3907)IdleWaitTimelate, or went through misfire handling. The same overwrite meantStandby()followed byScheduleJob()could fire a trigger the loop was holding. The loop now keeps the earliest pending candidate. (#3907)QRTZ_LOCKS, or a 1205 deadlock victim with the defaultSelectForUpdateLockHandler. SqlClient ran the retry outside any transaction, so the store acted without holdingTRIGGER_ACCESS, its statements committed one by one, and the final commit failed. The handler now gives up, and the store retries the whole operation in a fresh transaction. (#3903, #3907)FakeTimeProviderit used to wait forever. (#3907)The same scheduling and lock-handler fixes ship for 3.x in 3.22.1.
Full Changelog: quartznet/quartznet@v4.2.1...v4.2.2
v4.2.1Two fixes, both additive; no public API or schema-script change for anyone on the default SQL Server script or another database.
Fixed
A scheduler on a persistent store no longer waits forever to shut down on a clock nobody advances. Shutting down waits up to one second for the misfire and cluster check-in loops, and that second was measured on the scheduler's own
TimeProvider. On aFakeTimeProviderthat is never advanced — the usual way to test time-dependent code — a shutdown that raced the loop's start never returned. The bound is now measured in wall time. Production schedulers on the real clock were not affected; 3.x is not affected. (#3892, backported in #3894)Execution history works on schemas created from
tables_sqlServerMOT.sqlortables_sqlServer_Below2016.sql. 4.2.0 wroteRETRY_ATTEMPTandRETRY_SCHEDULEDon every history row, but onlytables_sqlServer.sqlcreated them, so with execution history on every history write failed withInvalid column name 'RETRY_ATTEMPT'. Both scripts now create them. (#3894) An existing schema created from either script adds them with (safe to run twice):Schemas from
tables_sqlServer.sql, fromdatabase/migrations/4.2/add_execution_history_sqlServer.sql, or fromSchemaProvisioning.CreateIfMissingalready have them.Full Changelog: quartznet/quartznet@v4.2.0...v4.2.1
v4.2.0Quartz.NET 4.2 is an additive minor: every public change is a new type, a new member on a type we own, or a default interface member, and its one schema change is a generated migration under
database/migrations/4.2/that a mixed 4.1/4.2 cluster runs safely. A 4.0 or 4.1 application upgrades by changing the version and, on a persistent store, running that migration before the first 4.2 node starts. The headline is that a job can be declared on its class —[QuartzJob]and[CronTrigger]— with the cron expression checked by the compiler, and that one trigger can wait, in the store, for another's outcome.Highlights
Quartz.nupkgnow carries an analyzer underanalyzers/dotnet/cs:QZ0001refuses a cron literal the parser would refuse — atWithCronSchedule,CronScheduleBuilder.Create, theCronExpressionconstructors and parse members,CronCalendarandCronTriggerImpl, honouring a literalCronFormat.Unix— with the parser's own message;QZ0002refuses a[JobTimeout("…")]that does not parse or is negative;QZ0003warns on[PersistJobDataAfterExecution]without[DisallowConcurrentExecution];QZ0004(Info) notes anExecutethat never observes its cancellation token. The analyzer isnetstandard2.0and links the cron parser's own sources rather than a second grammar, so a literal the compiler accepts is one the scheduler accepts; a parity corpus of 128 expressions pins that.<DisableQuartzAnalyzers>true</DisableQuartzAnalyzers>in the project file turns it off (#3846) —ExcludeAssets="analyzers"does not, on the .NET 10 SDK; the package's dependencies are unchanged. (#3803, #3815)[QuartzJob(Name, Group, Description, Durable, RequestRecovery, Scheduler)]on anIJoband one[CronTrigger("…", Name, Group, TimeZone, MisfireInstruction, Priority, Description, ExecutionGroup)]per schedule are read by a source generator insideQuartz.nupkg, which writes anAddDeclaredJobs()extension forIQuartzBuildercalling the sameAddJob<T>/AddTrigger<T>you would have written — no reflection, nothing to root for trimming, and the cron expression checked at compile time byQZ0001.QZ1001–QZ1003refuse an attribute on a type that is not a concreteIJob, two declarations with one identity, and a[CronTrigger]without[QuartzJob].Scheduler = "…"binds a declaration to one named scheduler.[SimpleTrigger]and a cron read from configuration are the deliberate follow-ups. (#3804, #3818)TriggerBuilder.StartAfter(parentKey, condition)— orscheduler.ScheduleJob<TJob,TInput>(input, Continuation.After(parentKey), …)for a one-off — stores a trigger in the new stateAwaiting; when the parent's firing ends, its completion settles every continuation inside its own transaction, on whichever node ran it: a matching outcome (OnSuccess,OnFailure,OnCancellation,OnVeto, orOnAnyOutcome) releases the trigger to fire now, any other discards it, and a scheduled retry settles nothing. A parent deleted while continuations wait releases theOnAnyOutcomeones and parks the rest inError. Every store call that completes a firing now carriesExecutionOutcomeand the exception throughTriggeredJobCompleteContext.JobChainingJobListenerkeeps the recurring case and gains a condition. A continuation can be declared inquartz_jobs.xml(<continues-after>,<continuation-condition>), inquartz_jobs.jsonand theQuartz:Schedulesection (ContinuesAfter,ContinuationCondition), scheduled over the wire, and seen in the dashboard — an Awaiting filter on Triggers, and "Continues after" and "When" on a trigger's detail. Job Continuations is the page. (#3805, #3806, #3819, #3821)IJobExecutionContext.OutcomeandRetryScheduledtell a listener what the job did and whether a retry follows;ITriggerListener.TriggerRetriesExhaustedis raised once when a policy runs out (a default interface member, so no listener needs to change); the counterquartz.trigger.retries_exhaustedcounts it; execution history records the attempt and whether a retry was scheduled, the History page and the history routes filter on "failed after retries", and a final failure on the History page has a Run again button, recorded in the Action Log.RetryPolicy.Exponentialtakes an optional jitter that spreads the attempts. One correction rides along:IJobExecutionContext.RetryAttemptnow reports the attempt the firing is to listeners as well — it used to read the trigger's field afterExecutionCompletehad already advanced or cleared it. (#3807, #3829)GetNextValidTimeAfterused to make eightTimeZoneInfoqueries per answer; it now walks the expression's own bitmasks on the wall clock and resolves the offset through a per-zone table of safe segments — intervals verified against the zone's own answers, with everything within 48 hours of a transition, and every zone the table cannot verify, left to the existing code. Every DST edge case still runs the code that handled it before, and a differential test compares the two paths to the tick across ten zones, half of its instants near transitions. On the machine the benchmark README names:0 0/5 * * * ?421 → 36.5 ns and 100 successive occurrences 43.1 → 3.5 µs, zero allocations, against NCrontab's 25.3 ns and 2.7 µs; the second-level form now beats NCrontab. The one cost is 8 bytes on eachCronExpression. (#3801, #3820)src/Quartz.Benchmark.Competitors/runs the same five workloads against TickerQ 10.4.0 and Hangfire 1.8.25 — firing throughput in memory and on PostgreSQL, schedule-to-execute latency, punctuality of one-second schedules, and the cost of one schedule call — with completion counted inside the executing job on every side, and the benchmark README and the operations page carry the tables, the rows Quartz loses included. On the box the README names, Quartz at its defaults executes 181,000–257,000 in-memory one-offs a second (TickerQ 98,000–115,000, Hangfire 58,000–92,000), reachesExecute58–70 µs afterScheduleJob(TickerQ 14.7 ms, Hangfire 94–235 µs), and fires 100 % of one-second schedules within 50 ms (TickerQ 73–78 %, Hangfire 0–15 %); a schedule call costs 7.7–10 µs against TickerQ's 1.1–2.4 µs, and on PostgreSQL a one-off firing makes too many round trips — which #3824 addresses. The profiling switches that found where the time goes (--profile-fire,--profile-cron,--profile-schedule,--latency) ship inQuartz.Benchmark, and out-of-process benchmark runs work again. OnRAMJobStorea firing now allocates 1.83 KB where 4.1 allocated 2.63 KB and dispatches with two fewer thread hand-offs — an empty job data map costs nothing to clone or build, one task per dispatch instead of three, one ambient slot per firing, the run shell handed to the pool as state (IThreadPool.TryRunWithState, a default interface member), the firing's clock read only when a span is listening — 12–14 % faster on the fire-throughput benchmark. And one durable job with thousands of triggers behind it — the one-off API's own shape — no longer costs the store a linear scan and an array of keys on every completion: churn against a job with 20,000 triggers went from 183 µs and 157 KB to 434 ns and 424 B. (#3802, #3816, #3822, #3823, #3826)UsePersistentStore(s => s.UseExecutionHistory())— orquartz.jobStore.executionHistory = true— records every execution and misfire intoQRTZ_EXECUTION_HISTORYandQRTZ_MISFIRE_HISTORYin the scheduler's own database, so a cluster has one history and every node's dashboard, the HTTP API's history routes and a store-attached window read the same rows. Retention is the store's: a sweep on the scheduler's clock deletes pastExecutionHistoryOptions.Retentionand trims toMaxEntriesPerScheduler, idempotently, so several nodes sweeping at once is harmless. Writes go on their own connection, never inside a job's transaction, and a failed write is logged and dropped rather than failing the firing. The tables are optional: a 4.2 node validates them only when the history is on, and names the script when they are missing. (#3771, #3825)AddQuartzDashboard(o => o.AttachStore("prod", store => store.UseSqlServer(cs)))discovers the schedulers a database holds and opens a window on each — a never-started scheduler over the shared store, listed with the new originWindowand the target's name, its status derived from the cluster's check-in rows rather than from itself (no rows reads as unknown, not as stopped), with every scheduling action available and the node-local ones — start, stand-by, shutdown, interrupt — hidden with a sentence saying they need an API or agent target. With the database-backed history store the window's History page shows what the nodes ran. This is the shared-storage reach model a cluster behind a load balancer needs, with zero worker changes and no inbound port; the docs say what a window can and cannot do and that it needs the cluster's serializer configuration. (#3772, #3828)[Queue]→ execution groups that bound but do not route, retries held in the store rather than the worker, a dashboard that refuses to start until told who may reach it). The best-practices page no longer says Quartz has no retry policy, the quick start leads with the three-line form, and the index says what nobody knew was in the box. (#3808, #3813, #3814)QuartzHealthCheckOptions.StaleFiringTolerance(off unless set;3is the documented starting value) asks the store for a schedulable trigger whose fire time passed more than that many misfire thresholds ago and reports Degraded, or Unhealthy past twice the bar — the silent stall that "running" and "store answers" never caught, with the overdue trigger, when it was due and by how much in the report's data. The worse of the check-in and stalled-firing verdicts now wins, where a late check-in used to hide a stall. Underneath,TriggerQuery.NextFireTimeBeforeis a new filter every store and the HTTP API honour. (#3809, #3817)Public API — additive only
[QuartzJob],[CronTrigger]AddDeclaredJobs()is generated into your assemblyContinuation,ContinuationCondition,ExecutionOutcome,TriggeredJobCompleteContext,AwaitingContinuationITrigger.Continuation,ITriggerConfigurator<TJob>.StartAfter— default interface members;TriggerBuilder<TJob>.StartAfter;ScheduleJob<TJob, TInput>(input, Continuation after, options);JobChainingJobListener.AddJobChainLink(first, second, condition)andJobExecutionVetoedIJobStore.FiringComplete(TriggeredJobCompleteContext)— DIM;IDriverDelegate.SelectAwaitingContinuations,ReleaseContinuation,ResetContinuationFireTime,SelectSchedulerNames— DIMsTriggerState.Awaiting,StoredTriggerState.Awaiting;TriggerHeader.ContinuesAfter,ContinuationCondition;TriggerQuery.NextFireTimeBefore; theAdoConstantsnames of the new columns, tables and stateIJobExecutionContext.Outcome,RetryScheduled;ITriggerListener.TriggerRetriesExhausted— DIMs;ExecutionHistoryEntry.RetryAttempt,RetryScheduled;ExecutionHistoryQuery.FailedFinally;RetryPolicy.Exponential(…, jitter)andRetryPolicy.Jitter; the meterquartz.trigger.retries_exhaustedIPersistentStoreBuilder.UseExecutionHistory()— DIM;AdoJobStoreOptions.ExecutionHistorySchedulerOrigin.Window;SchedulerRegistration.Target;QuartzDashboardOptions.AttachStore,AttachStoreOptions;SchedulerHeaderDto.Target,IsWindow,DisplayNameQuartzHealthCheckOptions.StaleFiringToleranceConfiguration
📅 Schedule: (in timezone Asia/Shanghai)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.