Repository navigation
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
4 times, most recently
from
September 29, 2026 11:56
2cff436 to
9d976b1
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
October 13, 2026 23:48
9bb1f79 to
508bc7b
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
October 20, 2026 11:19
cdbffb8 to
1cb2756
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
November 2, 2026 19:53
5fe7031 to
c856294
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
3 times, most recently
from
November 9, 2026 20:27
058d379 to
a8f8d67
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
November 21, 2026 20:26
7ad2e28 to
c30ac9c
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
2 times, most recently
from
December 1, 2026 23:45
3446d42 to
4ecca2f
Compare
renovate
Bot
force-pushed
the
renovate/major-quartznet-monorepo
branch
from
December 3, 2026 00:38
4ecca2f to
c6693c3
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
3.14.0→4.9.2Release Notes
quartznet/quartznet (Quartz.AspNetCore)
v4.9.24.9.2 fixes five problems found in 4.9: jobs failing to build under
PropertyMismatchBehavior.Throw, the dashboard resetting a Blazor host's circuit settings, store-attached dashboards that could not use the application's data source, aDeleteJobthat failed when a trigger of the job finished at the same moment, and an HTTP API whose OpenAPI document failed under native AOT or trimming. It also makes the cluster-observer switch public for admin processes. There is no schema change, and the only API change is an addition.Fixed
PropertyMismatchBehavior.Throwno longer fails on Quartz's own data keys (#4532, from #4515).PropertySettingJobFactorytried to set a job property for everyQRTZ_key Quartz writes into a firing's data, and withThroweach one failed the firing. Those are a manual run's mark, a job input, a backfill's slot, a recovered firing's original trigger, and the trace context thatPropagateTraceContext, on by default, leaves on a trigger scheduled inside an activity. So every Run now,TriggerJob, backfill, recoveredRequestRecoveryjob and job given an input (UsingInput,TriggerJobAndWait<TInput>) failed to build, and so did every firing of a trigger scheduled inside a trace. Keys startingQRTZ_are now passed over.AddQuartzDashboard()re-ran Blazor's server registration, which put the host's tuned options for its circuit hub, such asClientTimeoutIntervalandMaximumReceiveMessageSize, back to their defaults. Its ownAddSignalR()also setWebSocketOptions.KeepAliveIntervalback to zero. The dashboard now registers Blazor only when the host has not, whichever comes first, and leaves the keep-alive alone. A host with SignalR but no Blazor Server should configure the keep-alive afterAddQuartzDashboard().AttachStore's discovery probe and its windows built their own containers, so a recipe written as the nodes write it threw on every discovery round, and no window opened. The recipes affected usedDataSourceServiceKey,DataSourceFactory,UseRegisteredDataSourceorConnectionStringName. Those now resolve against the application's own container, and so does a factory that reads the application's options. Runtime tenants added withISchedulerRuntime.Addget the same. A data source taken from the application is never disposed by the dashboard.DeleteJobno longer fails when a trigger of the job finishes while it deletes (#4531, reported by @GaryBesta as #322 in 2016).DeleteJoblists a job's triggers, then unschedules each, and threwSchedulerException"Unable to unschedule trigger … while deleting job …" when one had gone in between: most often right afterTriggerJob, whose one run finished first. The trigger is gone, which is what the delete wants, so the delete now goes on.NotSupportedExceptionforQuartz.AspNetCore.HttpApi.OpenApi.Calendar, the first of the internal OpenAPI types Quartz's endpoints describe themselves with that had no generated metadata; the trigger listing'sstatefilter had none either. The types are internal, so an application could not add the metadata itself. Quartz now adds that metadata to the application's JSON options, behind reflection, so an application with reflection on answers as before.Added
AdoJobStoreOptions.ClusterObserveris public, withstore.UseClusterObserver()and the flat keyquartz.jobStore.clusterObserver(#4524, fixes #4519). An admin process that shares the cluster's store and scheduler name can say it only observes: itsStart()is refused before recovery or check-in, and it never appears in the node listing.ZeroSizeThreadPoolalone does not stop a start from running recovery. See Admin process in the external-leader how-to.Compatibility
AdoJobStoreOptions.ClusterObserverandClusterObserverExtensions.UseClusterObserver.DeleteJobreturns where it threw, and returnsfalsefor a non-durable job its store already removed with that trigger.PropertyMismatchBehavior.Warnno longer logs forQRTZ_keys.QRTZ_fix works per node. UnderThrow, a manual run or a traced trigger that fires on a 4.9.0 or 4.9.1 node still fails until every node runs 4.9.2.quartz.jobStore.clusterObserver, and ignoresQuartz:JobStore:ClusterObserver, so that process would start and run recovery.The dashboard fix (#4526) is on the 3.x branch, and the
DeleteJobfix goes there too, for the next 3.22.x.What's Changed
Other changes
Full Changelog: quartznet/quartznet@v4.9.1...v4.9.2
v4.9.14.9.1 fixes the dashboard. Adding it no longer shrinks the execution history an application sized itself, the Agenda opens under a custom dashboard path, and long names and keys stay where they belong. There is no public API change and no schema change.
Fixed
AddQuartzDashboard()wrote itsHistoryRetentionandHistoryMaxEntriesPerSchedulerontoExecutionHistoryOptionseven when nothing had changed them. Their defaults, 24 hours and 2000 rows, therefore replaced an application's ownAddQuartzExecutionHistory(...)sizing, and withUseExecutionHistory()the database history was swept down to them. Now only a dashboard bound changed from its default replaces the history's, whatever the registration order and also when the dashboard options are bound from configuration. The Overview's misfire tile counts over the history's own window (MisfireRetention, elseRetention).MapQuartzDashboard("/admin/scheduler"), loading the Agenda or clicking it in the menu redirected to/agenda?preset=…at the application root, a 404. The page wrote its address during the prerender, where the dashboard's links and the server's base address disagree under a custom path. Every page that writes its address (Agenda, Jobs, Triggers, History, Timeline), and every other navigation the dashboard makes, now goes to an absolute address built from the dashboard's root, so none of them can leave the custom path.<wbr>even underwhite-space: nowrap. Only the listings break a key between its words now: Jobs, Triggers, Currently Executing, the Agenda and Job detail's triggers.Documentation
Routes.razorstep an existing Blazor Server app needs:AdditionalAssembliesnamingtypeof(QuartzDashboardApp).Assembly. Without it, the dashboard flashes and the app's own 404 replaces it (#4508).Compatibility
UseExecutionHistory(), in memory otherwise.AddQuartzExecutionHistory(o => o.MaxEntriesPerScheduler = 0)and also added the dashboard was recording anyway, because the dashboard's 2000 replaced the 0. From 4.9.1 it records nothing, so its History page and misfire tile are empty.ExecutionHistoryOptionsand also set the dashboard'sHistoryRetentionorHistoryMaxEntriesPerSchedulerto exactly its default (24 hours, 2000) now keeps its own value for that bound.Build
Quartz.NET-4.9.1.zipare built on Linux and come without an.exe: run one withdotnet <name>.dll.The 3.x line has neither dashboard bug, so there is no 3.22.x for this round.
What's Changed
Other changes
Full Changelog: quartznet/quartznet@v4.9.0...v4.9.1
v4.9.0Quartz.NET 4.9 puts the job store into an application's EF Core model, opens the schedulers to AI agents, and answers the questions an operator asks of a running scheduler: why a trigger is not firing, what fires next, how a run ended and how late it started. It adds:
Quartz.EntityFrameworkCore, which puts the job store's tables in an application's own EF Core model on six databases, and moves a schema offAppAny.Quartz.EntityFrameworkCore.Migrations.Quartz.Mcp, an MCP endpoint through which an AI agent reads and operates the schedulers of a process and of its fleet, under the operator roles.TriggerJobAndWait(), which fires a stored job and waits for how its run ended, in process, on a cluster and over HTTP.An application on 4.8 compiles on 4.9 unchanged. There is a database migration.
database/migrations/4.9/add_fired_trigger_occurrence_<db>.sqlis required for every ADO.NET store: a 4.9 node refuses to start without it, and a 4.8 node never names its columns, so run it while the 4.8 nodes are up, then roll them. WithUseExecutionHistory(), the store also refuses to start withoutadd_trigger_status_<db>.sqlandadd_execution_due_delay_origin_<db>.sql, andadd_misfire_history_trigger_index_<db>.sqlis recommended: without it, one trigger's misfires read slower than on 4.8. The history scripts run at any time, since a 4.8 node never uses what they add. While a 4.8 node is in the cluster, it keeps 4.8's behaviour: a retry that a 4.8 node ran, or that a 4.8 node recovers after a crash, comes back at attempt0, and a 4.8 node's runs leave the trigger status and the new history columns empty. The mixed-version cluster gate ran 4.8.1 beside 4.9 through a rolling upgrade (#4492).The behaviour changes most likely to need a look: a continuation whose chain of parents leads back to it is refused at the call with
JobPersistenceException, so a start that re-applies such declared triggers now fails;ServiceProvider.Dispose()on a container that resolvedISchedulershuts the scheduler down, where it threw; two calendars that differ only in their time zone no longer compare equal; the dashboard's reschedule of a cron trigger resets its previous fire time and a pending retry; and a calendar saved from the dashboard is logged asCreateCalendarorReplaceCalendar, notUpsertCalendar. See Upgrading from 4.8 to 4.9.Highlights
modelBuilder.AddQuartzTables(Database.ProviderName)adds them, sodotnet ef migrations addcreates them, and after a Quartz upgrade adds what the release added. Entity Framework Corescheduler.TriggerJobAndWait(jobKey, timeout)answers aFiringResult. The timeout stops the wait, never the job. Schedulingquartz.trigger.duecounts the triggers past their fire time, andquartz.trigger.due.agesays how long the earliest has waited. TelemetryEntity Framework Core
Quartz.EntityFrameworkCoreadds the job store's tables to an application's ownDbContext(#4402, #4406, closes #4381).modelBuilder.AddQuartzTables(Database.ProviderName)picks the dialect from the provider's name, for PostgreSQL, SQL Server, MySQL, SQLite, Oracle and Firebird.dotnet ef migrations addthen creates the tables, and after an upgrade adds what the new release added. The model is generated from the same schema model as the database scripts, so the two cannot drift apart. See Entity Framework Core.QuartzTablesOptionssetsTablePrefixandSchema. A prefix that makes any name longer than the database takes is refused before anything runs, naming the longest prefix that fits.migrationBuilder.CompleteQuartzSchema()adds what a model cannot say: SQLite's delete triggers, and MySQL's descending index column. See The first migration.QuartzTablesOptions.MaxIdentifierLengthraises the limit to as much as 63 (#4408).modelBuilder.AddQuartz(...)withAddQuartzTablesunder AppAny's prefix and schema, remove the AppAny packages, add one migration whoseUpismigrationBuilder.MoveQuartzTablesFromAppAny()and whoseDownis empty, and apply it with the schedulers stopped. The move repairs the history indexes AppAny never created and, on SQL Server, theNOT NULLstring properties that fail every calendar-interval and recurrence trigger, and it adds 4.9's columns and index. It renames nothing, rebuilds no table, and is one-way. AppAny never had Oracle or Firebird, so the move refuses both, and an application on Quartz 3.x keeps AppAny. See Moving off AppAny. Thanks to its authors, @sergeyshaykhullin, @MJECloud and @JasonLandbridge, for building and keeping it, and to @JasonLandbridge for asking for this.MCP and the HTTP API
Quartz.Mcpserves an MCP endpoint over Streamable HTTP (#4435, closes #4245).AddQuartzMcp()registers it andMapQuartzMcp()mapsPOST /quartz-mcp. An AI agent reads and operates the schedulers of the process and of its fleet through 19 tools, under the same operator roles as the dashboard and the HTTP API. See MCP endpoint.ReadOnly = falseand anOperationAuthorizationPolicy, and the application refuses to start when nothing authorizes the endpoint.rescheduleandunschedulechange nothing on their first call. They answer a preview and a confirmation token, bound to the arguments, the caller and the trigger's state, that the second call must carry. See Preview and confirm.9500–9504, and the dashboard's Action Log lists its changes Via MCP, with the user and the client.Quartz:Dashboard:Mcp:Enabled, off and read-only by default. See MCP endpoint.HttpApi:Enabled=true,?target=names the scheduler behind a target:GET /quartz-api/schedulers/OrdersScheduler/jobs?target=orders. The operator roles apply at the host. The API takes a bearer token, never the sign-in cookie, and a request with anOriginoutsideAllowedOriginsis refused. See The HTTP API.Quartz.HttpClientreaches a scheduler through the host withHttpClientOptions.GatewayTarget, ornew HttpScheduler(new SchedulerRef("QuartzScheduler", "w1"), httpClient). See Through the dashboard host.403when it refused,503when it is unreachable,504when it timed out,502when it failed, and501when it is too old for the route. These were400and500. See When the target does not serve it.QuartzHttpApiOptions.AllowedOriginsrefuses a browser request from any other origin with403, for an API authenticated by a cookie. Empty, the default, checks nothing. See Refusing cross-site requests.501when the store cannot read them (#4456). A store of your own that throwsNotSupportedExceptionfromQueryExecutions,GetExecution,QueryMisfiresorCountMisfiresmade four routes answer500.HttpExecutionHistoryStoreraises the501asNotSupportedException.Scheduling
TriggerJobAndWaitfires the job now, with no data, aJobDataMapor a typed input, and waits up to a timeout.WaitForFiring(triggerKey, timeout)waits for a firing already triggered. Both answer aFiringResult:Endedwith the outcome and the history row, orPendingwhen the timeout came first. The timeout stops the wait, never the job. See Trigger it and wait for the outcome.UseExecutionHistory(), and a clustered scheduler without a database history is refused withNotSupportedExceptionbefore anything is stored.HttpSchedulerpolls the host's history the same way. See On a cluster.TriggerJob(jobKey, data, triggerKey)fires under a trigger key the caller names, so a retried call cannot fire twice: a key already stored throwsObjectAlreadyExistsException. See Naming the trigger's key.SchedulingOptions.PruneUndeclaredInGroupsnames the groups the declarations own. At the first start on a persistent store, a stored job or trigger there that no declaration names is deleted and logged, as warning4034for a job and4035for a trigger. A prune that fails logs error4036, deletes nothing more, and the start goes on. The list is empty by default, and it binds fromQuartz:Scheduling:PruneUndeclaredInGroupsandquartz.scheduler.pruneUndeclaredInGroups. See Removing what the code no longer declares.ScheduleJobsbatch, two in one batch naming each other, and a replace or reschedule that closed a loop through stored triggers were stored, and waited for ever. Both stores now throwJobPersistenceExceptionwith the loop in the message, and store nothing. A trigger that names itself inScheduleJoborRescheduleJobwas refused asObjectDoesNotExistException, and is now refused as the loop. See The parent has to exist.RAMJobStore,RescheduleJobto a trigger of another key settles the continuations waiting for the old one as a deleted parent's:OnAnyOutcomeones are released, the others parked inError. They waited for ever. The ADO.NET store already settled them at its next misfire pass.ServiceProvider.Dispose()shuts the scheduler down (#4387). TheISchedulera container injects implemented onlyIAsyncDisposable, so a synchronous disposal threwInvalidOperationExceptionand left the scheduler firing. It now blocks on the shutdown.await usingis still the better choice.AnnualCalendar,DailyCalendar,HolidayCalendar,MonthlyCalendarandWeeklyCalendarcompared their rule and base calendar but notTimeZone, though the same rule excludes other instants in another zone. Thanks @vtxe02023274.Dashboard
ClusterNode.QuartzVersioncarries it, and the HTTP API sends it asquartzVersion. See Cluster./quartz/agendalists every fire of every trigger in a window of up to 7 days, by hour, with Pause selected and Resume selected. The fires are computed where the triggers are stored, with their calendars applied, at most 1,000 in one read, and the page says where that cap cuts the list. The HTTP API serves it asGET …/triggers/upcoming-fires. See Agenda.UseExecutionLogCapture(). A policy or an agent that refusesGetExecutionto keep captured logs from a caller must refuseGetFireInstanceLogtoo. See Following a running firing's log.SortedSet`1[System.DateOnly]. It now shows a holiday calendar's dates, an annual calendar's grid, the weekly and monthly days, the daily range and the cron calendar's next excluded spans, with the calendar's time zone, its base calendars and the count of triggers using it. Saving over a stored calendar asks whether to update its triggers. See Calendars.Execution history
quartz.job.execution.start_delayrecords; its origin,Schedule,ManualorBackfill; and the type of what it threw.ExecutionHistoryEntrycarries them asDueTimeUtc,StartDelay,OriginandExceptionType, andExecutionHistoryQueryfilters on the last two. History gains a Late column, Backfill and Manual badges and the two filters, and a run's own page shows all four. A row written before 4.9 leaves them empty. See Execution history and misfires. Thanks vurumalla92, whose work it is built on and whose commits it keeps, and @SpaceOgre, who designed it.IExecutionHistoryStore.QueryTriggerRunStatusesreads it. The Triggers listing shows each trigger's last run, and failing ×N while its latest occurrences failed for good. Manual runs, backfills, recoveries and a firing that ends its trigger count toward the job's status only. See Trigger run status.IncludeBackfillsonExecutionHistoryQuery,MisfireHistoryQueryandExecutionStatisticsQuerylists and counts them too, rows from before 4.9 included, and the HTTP API takes?includeBackfills=true. History's view of one trigger reads This trigger and its backfills. See In the history.UNION ALL, so each seeks the trigger's index rather than walking every trigger's rows.IDX_QRTZ_MH_TRIG_TIMEgives the misfire history the trigger index the execution history has had since 4.6, from the optionaladd_misfire_history_trigger_index_<db>.sql. On SQL Server, a trigger's run statistics are compiled for the trigger they read, so a plan cached for another trigger no longer takes close to a second. On MySQL, optimizer hints keep one trigger's misfire pages, counts and run statistics on the right index.Clustering and persistence
ScheduledFireTimeUtc,GetOccurrence(), history and telemetry named the wrong occurrence, and a retry policy started over after each crash. The fired-trigger row now records the occurrence and the attempt, in two columns from the requiredadd_fired_trigger_occurrence_<db>.sql, and cluster recovery, the shutdown hand-back and startup recovery all read them. A row a 4.8 node wrote recovers as before. Thanks vurumalla92, whose work it is built on and whose commits it keeps.BLOCKEDand back, a node releasing the acquisition it still held moved the other node's newerACQUIREDrow back toWAITING. The release now moves the trigger's row only while its stored next fire time is the one it held. Thanks @EnesKartal.40P01on PostgreSQL), or delete a replacement that committed after the completion read the row. It now takes the trigger's row first, as the writers do, and deletes only while the row holds the fire time it read. Thanks @omerkocadere for the report, its reproduction and the fix.StdAdoDelegatedeletes by key alone, so its completion now takes the trigger lock (#4484).CheckinInterval.[DisallowConcurrentExecution]job (#4457). Its other candidates are refused on the job alone, since only one can fire. On SQL Server, a firing of a busy serial job reads about 7.7 rows fewer.MEDIUMBLOB(#4450).BLOBholds at most 65,535 bytes, so a larger serializedJobDataMapfailed withData too long for column 'JOB_DATA'. An existing database keepsBLOB, because changing a column's type copies the table and blocks writes.schema-changes.mdgives the four optionalALTER TABLEstatements, andQuartz.Weasel.MySQLnever widens such a column at startup. See Wider binary columns on MySQL. Thanks @birgerj.Quartz.Weasel.Oracleretries a schema apply that loses a race withORA-04020(#4472), as it retriesORA-00054, rather than failing the scheduler's start.Telemetry
quartz.trigger.due(QuartzInstrumentation.Instruments.TriggerDue) is anObservableGauge<long>of theWAITINGtriggers whose fire time has passed, per execution group, andquartz.trigger.due.age(TriggerDueAge) is how long the earliest has been due, in seconds. The misfire pass counts at most once perMisfireHandlerFrequency, only while either instrument is enabled, and the gauges read that count. Every node counts the whole scheduler, so aggregate across nodes withmax.RAMJobStorereports neither. See The due backlog. Thanks @omri-klein-semperis.TraceRootStoreOperations = false, the misfire scan and the cluster check-in export no trace per pass (#4444, closes #4375). They ran outside any activity, so each of their queries started a root span, and on an idle clustered node the check-in was most of what the option left. Each pass, with the interrupt-request read after a check-in, now runs under the unrecorded stand-in the scheduler's own store calls use. Thanks @omri-klein-semperis.Fixed
Documentation
AddDotnetProject, and say which Aspire each AppHost call needs (#4419). See Aspire Hosting.Packaging
net10.0:Quartz.EntityFrameworkCoredepends onMicrosoft.EntityFrameworkCore.Relational(>= 10.0.0) alone. It names no provider, so no provider's version or licence reaches an application (#4402).Quartz.Mcpdepends onQuartz.AspNetCoreandModelContextProtocol.AspNetCore(>= 2.3.1), the first release outside GHSA-x863-g495-4cjc. That advisory bound a stateful session to a principal byNameIdentifier,suborupn, so two principals with none of them shared one;Quartz.Mcpis always stateless. The SDK asks forMicrosoft.Extensions.*.Abstractions10.0.13 andMicrosoft.Extensions.AI.Abstractions10.11.0. The package is trimmable and native AOT compatible (#4435).Quartz.Weaselpackages take Weasel[9.39.0, 11.0.0), where they took[9.39.0, 10.0.0), so an application on Marten 10, Wolverine 7 or Polecat 6 restores withoutNU1608(#4460, closes #4451, closes #4452). They still compile against 9.39.0, and a new CI leg runs those assemblies on Weasel 10. On Weasel 10 the application takes Weasel's drivers: Npgsql 11, MySqlConnector 3.0 and Oracle.ManagedDataAccess.Core 23.26.401. See Weasel 10. Thanks @GildartsClive98 for the request.Microsoft.*floors stay at 10.0.0, andQuartz.Aspire.Hosting'sAspire.Hostingat 13.6.5; it runs from an Aspire 17 AppHost (#4419).quartz-dashboardtool and image carryQuartz.McpandMicrosoft.AspNetCore.Authentication.JwtBearerinside them, for the host's MCP endpoint and its HTTP API ([#4432](https://redConfiguration
📅 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.