Repository navigation
Bump Quartz.Extensions.Hosting from 3.22.9 to 4.9.2 - #70
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: Quartz.Extensions.Hosting dependency-version: 4.9.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
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.
Updated Quartz.Extensions.Hosting from 3.22.9 to 4.9.2.
Release notes
Sourced from Quartz.Extensions.Hosting's releases.
4.9.2
4.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
4.9.1
4.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
4.9.0
Quartz.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.... (truncated)
4.8.1
4.8.1 publishes the dashboard container image that 4.8.0 did not. Every NuGet package of 4.8.1 has the same contents as 4.8.0's, apart from its version, so an application on 4.8.0 needs it only for
Quartz.Aspire.Hosting.Fixed
ghcr.io/quartznet/quartz-dashboardpublishes, forlinux-x64andlinux-arm64(#4390). It is tagged4.8.1,4.8,4andlatest, with an attested digest. 4.8.0's tag run failed before it pushed anything, for three reasons:linux-arm64half built the analyzer project for arm64, and the x64 compiler could not load it (CS8034);;, which split the label list (MSB4184);objfolder at once (CS2012).Quartz.Aspire.Hosting4.8.1 has an image to pull. It runs the image at its own version, and 4.8.0 had none, so upgrade the AppHost's package to 4.8.1.:4.8, the tag that follows the newest 4.8 patch.Build
ContainerSmokepublishes both architectures to a throwaway local registry on every pull request, through the same command a release runs, and checks that the index lists both.What's Changed
Other changes
Full Changelog: quartznet/quartznet@v4.8.0...v4.8.1
4.8.0
🎉🥳 The
Quartzpackage has passed 200 million downloads on NuGet. Thank you to everyone who schedules with it, reports what breaks and sends fixes. 🎂🎊Quartz.NET 4.8 is about operating schedulers: who may do what to them, and where their dashboard runs. It adds:
View,OperateandAdminister, checked per operation on the HTTP API, the dashboard and the dashboard agent.quartz-dashboardtool, theghcr.io/quartznet/quartz-dashboardimage, andQuartz.Aspire.Hostingto run it from an Aspire AppHost.GetOccurrence(), which says which occurrence a firing serves and why it runs.net11.0asset ofQuartz, compiled with runtime async.An application on 4.7 compiles on 4.8 unchanged. There is no database migration. The behaviour changes most likely to need a look: a clustered node that shuts down cleanly deletes its scheduler state row, so its peers no longer log
3503for it; the dashboard's Pause group and Resume group act on the group itself; a firing recovered by cluster recovery or a shutdown hand-back runs at the original's scheduled time and is never a misfire;ISchedulerFactory.GetScheduler()builds the container's own scheduler beside a proxy bound under the same name; disposing a container shuts down every scheduler it built; and an execution history store that cannot be built now stops the application from starting. See Upgrading from 4.7 to 4.8.Highlights
OperationAuthorizationPolicyholds the HTTP API and the dashboard to it. With no policy set, nothing changes. Operators and the dashboard hostQuartz.Dashboard.Hostships as thequartz-dashboardtool and a container image (from 4.8.1), configured from settings alone, andQuartz.Aspire.Hostingruns it from an AppHost. Operators and the dashboard host/quartz/timelineplots each trigger's runs and upcoming fires on one axis, for a window from 10 minutes to 7 days. Dashboard and HTTP APItrigger.DescribeSchedule()saysEvery weekday at 07:00 (America/Chicago), and the Triggers listing shows it beside the next and previous fire. Dashboard and HTTP APIquartz.job.execution.start_delaymeasures from when the attempt was due, andcontext.GetOccurrence()gives a key that is the same across retries and recovery. TelemetryAdoJobStoreOptions.EnlistmentSourceis asked as each scheduler call begins. Clustering and persistenceQuartzships anet11.0asset besidenet10.0, with the same public API. .NET 11Operators and the dashboard host
SchedulerAccessisView,OperateorAdminister, and every HTTP API route states the one it needs. A viewer reads, an operator also pauses, resumes, triggers and interrupts, and an administrator also adds, edits and deletes.TriggerJobwith job data needsAdminister, because a storedNativeJobreads its command from job data.OperationAuthorizationPolicyonQuartzHttpApiOptionsorQuartzDashboardOptions, and build the policy withRequireSchedulerRoles.DashboardAgentOptions.MaxAccesscaps what a dashboard may ask of an agent.403and logs event9009. The dashboard hides what the visitor's role would refuse, logs9118, and adds a Refused entry to the Action Log.MaxAccess, every surface allows and refuses what it did on 4.7. See Operator roles.Administer. The execution page says so in place of the button (#4238).Quartz.Dashboard.Hostis the dashboard as a program of its own, configured fromQuartz:Dashboardalone. It is thequartz-dashboard.NET tool and, from 4.8.1, theghcr.io/quartznet/quartz-dashboardimage, forlinux-x64andlinux-arm64. It fronts schedulers over their HTTP API, reads every scheduler in a database, and accepts agents that dial in.Authentication:Modeis required:Token,OpenIdConnectorUnsecured. Without it, or with any other mistake in its settings, the host logs9402and refuses to start. Its events are9400–9409.Quartz.Aspire.Hostingruns that image from an Aspire AppHost (#4226); use 4.8.1, the first version with an image to pull.AddQuartzDashboardadds the resource,WithAttachedStoreshows a database's schedulers, andWithReference(dashboard)lets a worker dial in as an agent. See Aspire Hosting.UseDashboardAgent()has an overload with no callback (#4226). Both overloads readQuartz:DashboardAgent, or a named scheduler'sQuartz:Schedulers:{name}:DashboardAgent.UseDashboardAgent(configure)reads it before it runs the callback, so an application with no such section is unaffected.Dashboard and HTTP API
/quartz/timeline, under Monitoring, plots each trigger's finished and executing runs on one axis, and its upcoming fires as marks. The window runs from 10 minutes to 7 days, and the page reads at most 500 runs per window. Rows are grouped by job group, filtered by group and name, and paged. A trigger's menu runs, pauses, resumes, resets or unschedules it.TriggerHeaderDtogainsStartTimeUtc,EndTimeUtc,NextFireTimeUtcandPreviousFireTimeUtc, which an older agent leavesnull. See Timeline. Thanks @dzmitrymatus.qz_sidebar_collapsed. Thanks @dzmitrymatus.TriggerScheduleDescriptionExtensions.DescribeSchedule(this ITrigger)says a trigger's schedule in English, in its time zone, for display only. A shape it cannot phrase falls back to the expression or rule, and a trigger kind it does not know givesnull.... (truncated)
4.7.3
One fix for the 4.7 line. There is no public API change and no schema change.
Fixed
ObjectDisposedExceptionwhen asked for the connection of a transaction its broken connector disposed. The store's disconnected-transaction check let that escape in place of the real error, from rollbacks, row-lock retries and the enlisted-transaction checks. A failed fire-batch or cluster check-in commit now goes through its commit validator and transient retry as on other databases, scheduler listeners hear of the failure, and the cluster manager no longer logsError managing cluster: NpgsqlTransaction. Thanks @mrreddevil2412 for the report and analysis. (#4262, from #4258, #4255)Compatibility
EnlistConnectionrefuses a transaction that has ended (committed, rolled back or disposed) with that reason before checking that it belongs to the connection. A committed SQL Server transaction used to be refused as belonging to a different connection. The exception type and parameter name are unchanged.What's Changed
Fixes
Full Changelog: quartznet/quartznet@v4.7.2...v4.7.3
4.7.2
Fixes for the 4.7 line, most of them for .NET 11. There is no public API change and no schema change.
Fixed
DashboardPathinteractive, because the Blazor circuit never started._framework/Microsoft.NET.Sdk.BlazorWeb.DotNetWatch.<hash>.lib.module.js) to every Debug build of a Blazor host, even withoutdotnet watch. The dashboard's<base href>sends that request under the dashboard path, but the dashboard mirrored onlyblazor.web.jsandopaque-redirectthere. So the request failed, and the failed import stoppedBlazor.start._frameworktree under its path, forwarding each file to what the host serves at/_framework/./quartzpath, Release and publish builds, and builds with the .NET 10 SDK.FallbackPolicy.FallbackPolicythe dashboard recommends turned away every agent, even one with the right token.FallbackPolicy, whatever the hub's endpoint allows (dotnet/aspnetcore#69624). The compiler putsAsyncStateMachineAttributeon everyasyncmethod, so the agent hub'sRegisterwas held to the policy, and so were the live-events hub's methods.async, so they carry no attribute. The agent hub's own token check is unchanged.AllowAnonymous()under a fail-closedFallbackPolicydoesn't start its Blazor circuit on .NET 11 for an unauthenticated user. Blazor's ownStartCircuitmeets the same ASP.NET Core issue, which only ASP.NET Core can fix. (#4235, closes #4234)AddDeclaredJobs()is intercepted in anet11.0build.net11.0, aScheduleJoborAddJobdelegate in the sameAddQuartzlambda asAddDeclaredJobs()got no generated interceptor. It fell back to reflection binding, which a trimmed or native AOT app can't use.AddQuartzoverload.AddDeclaredJobs()is now intercepted too, which it never was before on any target framework. (#4235, closes #4234)typeandtitlefrom its own table, which is ASP.NET Core 10's, so the body is the same on every runtime. The agent's 413 and 501 bodies gain thetypeandtitlethe HTTP API already wrote. (#4235, closes #4234)RunorRunAsyncstops itself once its stopping token fires. A second stop from elsewhere, such as an application's ownStopAsyncor a test host's dispose, then ranAttachedStoreDiscovery.StopAsyncat the same time. That threwInvalidOperationException: Collection was modified, even with no store attached. (#4230, closes #4229)The 3.x line gets the dashboard
_frameworkfix in 3.22.10. None of the others apply to 3.x, which has no attached-store discovery, no agent hub, no HTTP API problem details and no source generators.What's Changed
Full Changelog: quartznet/quartznet@v4.7.1...v4.7.2
4.7.1
Two fixes for the 4.7 line: decimals read back correctly on .NET 11, and
NativeJobworks properly on Linux. There is no public API change and no schema change.Fixed
decimalcomes back as the number that was written. .NET 11 converts adoubleorfloatto thedecimalnearest its exact binary value, soJobDataMap.Get<decimal>of12.34dreturned12.339999999999999857891452848. Nothing threw, so a job reading an amount silently got a different number after the runtime upgrade. The values affected are adoubleorfloatin job data: untyped JSON numbers, scheduling data, the HTTP API, orPut("amount", 12.34). So are theDEC_PROP_1/2trigger columns, when a driver such as SQLite's returnsNUMERICas adouble. Quartz now rounds those to 15 (double) or 7 (float) significant digits, as every earlier runtime did. (#4216, closes #4210)NativeJobpasses its parameters to the shell on Linux. The command and its parameters were joined into oneArgumentsstring, which .NET splits on whitespace, so/bin/sh -c echo hiranechoalone and the parameters never reached the command. (#4215, closes #4212)NativeJobkills the process tree. An interrupt or a shutdown left the child running, and the job reported the cancellation asError launching native command. The job now kills the process and its descendants, and ends as cancelled (OperationCanceledException) rather than failed. (#4215)NativeJobreads output without foreground threads. Two foreground threads read stdout and stderr, so a child that held its pipes open kept the host process alive after shutdown. Asynchronous reads replace them. When the job waits, all output is logged before it completes, unless a process the command started keeps the streams open more than 5 seconds after it exits; event 7204 then says so. (#4215)NativeJobruns the system directory'scmd.exeon Windows, never one thatPATHor the working directory finds first. (#4215)Compatibility
NativeJobcommand that wrapped itself in quotes to work around the old whitespace split now passes those quotes to the shell. Remove the quotes, or move the arguments toParameters.NativeJobnow ends as cancelled rather than with aJobExecutionException. Listeners and history see a cancellation.The 3.x line gets the same fixes in 3.22.10.
What's Changed
Full Changelog: quartznet/quartznet@v4.7.0...v4.7.1
4.7.0
Quartz.NET 4.7 is about running a schedule the way it was meant. Four additions cover that:
-.A stored typed job can be run now with its input. SQL Server joins lock-free firing rounds when
READ_COMMITTED_SNAPSHOTis on. An application on 4.6 compiles on 4.7 unchanged. One behaviour change needs checking:CronExpressionBuildernow writes0for an unset seconds field. The upgrade has one required database migration, a nullable column that can run while 4.6 nodes are up. See Upgrading from 4.6 to 4.7.Highlights
SimpleScheduleBuilder.MeasureIntervalFromCompletion()starts the next run an interval after the previous one completes, so a long run never queues the next one behind it. TriggersUseDefaultTimeZone(Scheduler:DefaultTimeZone) gives its zone to every cron, calendar-interval, daily time-interval and recurrence trigger that names none. TriggersIScheduler.GetUpcomingFireTimescomputes a stored trigger's next fire times. The HTTP API serves them at…/fire-times, and every trigger page on the dashboard shows them. Dashboard and HTTP API-switches a declared trigger off. AConfigurationKeyvalue, or aQuartz:Scheduleexpression, interval or rule, of-leaves that trigger unscheduled and removes a stored copy. ConfigurationTriggerJob<TInput>(jobKey, input)fires anIJob<TInput>now with its input, and returns the trigger's key. TriggersREAD_COMMITTED_SNAPSHOTon and at least two live 4.7 nodes, a round of concurrent-allowed work takes no lock, and claims and fires in two transactions. ClusteringAddJsonTypeInfoResolverhands the scheduler yourJsonSerializerContextonce, for job data and for job inputs. Trimming and native AOTTriggers
MeasureIntervalFromCompletionon the builder, on[SimpleTrigger], in the JSON and XML schedules, through the HTTP API'supdate-detailsand in the dashboard's Edit details.QRTZ_TRIGGERS.FIXED_DELAY, from the required migration4.7/add_trigger_fixed_delay. A 4.6 node runs such a trigger at a fixed rate, so turn it on only once every node is 4.7.QuartzSchedulerOptions.DefaultTimeZone, orUseDefaultTimeZone(TimeZoneInfo). The keys areScheduler:DefaultTimeZoneandquartz.scheduler.defaultTimeZone, and take an IANA or Windows id. A trigger that names a zone keeps it.InTimeZone(null)now means "no zone stated".TriggerJob<TInput>runs a stored typed job now with its input, and returns the manual trigger'sTriggerKey, for history and fire-instance lookups.TriggerJob(jobKey, token)now compiles and fires the job with no data (#4150, closes #4138).CronExpressionBuilderleaves an unset seconds field at0, not*(#4144, closes #4143).WithMinuteIncrements(0, 5)used to build* 0/5 * ? * *, every second of every fifth minute. It now builds0 0/5 * ? * *. To fire every second, addWithSecondRange(0, 59).TimesTriggered, a pending retry and an individual pause, so a finite repeat count does not start over. Also in 4.6.1 and 3.22.8.Clustering
READ_COMMITTED_SNAPSHOTon and at least one other live 4.7 node. A single node keeps 4.5's rounds (reasonno_live_peer), because there they measured slower. Without the setting, rounds stay locked (reasonread_committed_snapshot_off, which replacessql_server). See SQL Server.FireInstance.InterruptRequestedUtcshows a pending request.UseTriggerGroupWhenUnset, not againstRECOVERING_JOBS(#4148, closes #4142). Also in 4.6.1.Dashboard and HTTP API
IQuartzApiClient.GetUpcomingFireTimes, a default interface member, from the routeGET …/triggers/{group}/{name}/fire-times. The agent operation isGetTriggerFireTimes. A fixed-delay trigger shows its next run as provisional. The cron editor's preview shows only while the edited expression differs from the saved one (#4159).Unregisterat scheduler shutdown was sent without waiting for delivery, and stopping the connection could drop it, so the dashboard listed the agent as disconnected instead of shut down.Configuration
-switches a declared trigger off (#4151, closes #4137). It applies to aConfigurationKeyvalue, and to the JSON schedule'sCron.Expression,Simple.IntervalandRecurrence.Rule. The trigger is not scheduled, a stored copy is unscheduled, and event 4032 is logged.... (truncated)
4.6.3
Two fixes for the 4.6 line, for applications that are not yet ready for 4.7's database migration. There is no public API change and no schema change.
Fixed
Quartz.Weasel.MySQLfloorsMySqlConnectorat 2.6.1. 4.6.2 took the driver fromWeasel.MySql9.39.0, which declares 2.4.0, so its nuspec carried a floor that GHSA-473q-m89c-ghf8 covers: the driver sends the password before it has verified the server's TLS certificate. The package now namesMySqlConnectoritself, at the first fixed version. An application that already references 2.6.1 or later is unaffected. (#4204, from #4197)TriggerJoblisted every trigger's header. On the ADO.NET store that meant every column of every trigger, a fired-trigger probe per row and a sort. OnRAMJobStoreit meant a walk of the whole store. Each firing not yet run made the next listing longer. A shipped delegate now readsEXECUTION_GROUPalone, and stops at the first row that settles the answer. On SQLite with 4,000 triggers,TriggerJobdrops from 38.6 ms to 12.4 ms. (#4204, from #4179 and #4174)Dependency change
Quartz.Weasel.MySQLgains a direct dependency onMySqlConnector(>= 2.6.1).4.7.0 carries both fixes. No 3.x package references
MySqlConnector, and 3.x has had the manual-firing fix since 3.22.8.What's Changed
Full Changelog: quartznet/quartznet@v4.6.2...v4.6.3
4.6.2
One fix for the 4.6 line. There is no public API change, no schema change and no dependency change.
Fixed
tzdata-legacy, such as Ubuntu 26.04. Without the TimeZoneConverter plugin, seven Windows ids (FLE, India, Argentina, Greenland, Myanmar, Nepal and US Eastern Standard Time) and tzdata's legacy IANA names, such asAsia/CalcuttaandEurope/Kiev, threwTimeZoneNotFoundExceptionthere. For those seven Windows ids, .NET maps through CLDR to the legacy names, which onlytzdata-legacyinstalls. Quartz now maps a legacy name to its canonical zone through tzdata 2026e'sbackwardlinks, and resolves it under the id asked for. The id a store writes toTIME_ZONE_IDtherefore does not depend on whether the host hastzdata-legacy. (#4180, from #4172)Behaviour change
UseTimeZoneConverteron such a host, 4.6.1 stored the canonical name (TimeZoneConverter 7.1.0 answersEurope/KyivforFLE Standard Time). 4.6.2 resolves the id before the plugin is asked, so it stores the id asked for. Rows already stored read back either way.The same fix ships for 3.x in 3.22.9.
What's Changed
Full Changelog: quartznet/quartznet@v4.6.1...v4.6.2
4.6.1
Fixes from 4.7's development for the 4.6 line. There is no public API change and no schema change.
Quartz.Plugins.TimeZoneConverternow requires TimeZoneConverter 7.1.0; no other package's dependencies change.Fixed
AddTriggerandScheduleJobregistration and every scheduling file throughRescheduleJob. That resetTimesTriggered, so a finiteWithRepeatCountor a recurrence rule'sCOUNTran again from the beginning. It also dropped a retry pending at shutdown, and resumed a trigger an operator had paused on its own. While the declared schedule is unchanged, the count and the retry are now kept, and so is the pause, with its record. A changed schedule starts fresh, and an application's ownRescheduleJobstill ends an individual pause. (#4147, from #4128)[DisallowConcurrentExecution]job's completion reads only the triggers that misfired. Each completion read every waiting trigger of the job in full underTRIGGER_ACCESSto find the late ones, so draining a backlog read N rows on each of N completions, and scheduling calls waited behind the lock. A shipped delegate now reads only the job's misfired triggers, with the misfire handler's own predicate. In the #4167 workload on SQL Server (400 queued triggers on one serial job, 50 ms body), the drain went from 138 s with 137 misfire events to 101 s with 37. (#4169, from #4167)AddTypeInfoResolverwas stored, and then its job failed to load with Failed to parse JobDataMap from json. It now reads back as aDictionary<string, string>of its members: a number or a boolean as its JSON text ("3","true"), a nested object as its JSON, a null asnull. A map that 4.6.0 stored loads. (#4161, from #4156)UseTriggerGroupWhenUnset, a firing replayed after cluster recovery, a shutdown hand-back or startup recovery was limited underRECOVERING_JOBS, so it ran beside its group's live firings whatever the group's limit. (#4148, from #4142)CronTriggerImpl.Cloneshared the original's map, so a write through either was seen by both. The other trigger types already copied it. (#4160)Quartz.Plugins.TimeZoneConverterresolves seven more Windows ids on a system withouttzdata-legacy, such as Ubuntu 26.04: FLE, India, Argentina, Greenland, Myanmar, Nepal and US Eastern Standard Time. Their CLDR names are legacy links that onlytzdata-legacyinstalls, and TimeZoneConverter 7.1.0 maps them to the canonical names. Without the plugin those ids still fail on such a system; #4172 tracks that. (#4171)Behaviour changes
JsonSerializationExceptionnames the entry, the type and the member. Such a value used to be stored and then fail to load. (#4161)IgnoreMisfirePolicytrigger as misfired. This applies to the completion of a[DisallowConcurrentExecution],BufferOneorCancelPreviousfiring, which also no longer writes such a trigger back. Acquisition fires it late, as the misfire handler andRAMJobStorealready did. (#4169)The run-state and serial-completion fixes ship for 3.x in 3.22.8.
What's Changed
Full Changelog: quartznet/quartznet@v4.6.0...v4.6.1
4.6.0
Quartz.NET 4.6 is about clusters under load. A firing round of work that allows concurrent execution takes no
TRIGGER_ACCESSlock, and a round reads each concern once whatever its size. An interrupt reaches the node running the firing, through the store. A node can serve only the execution groups it is configured for, and execution history can write behind. A trimmed or native publish now records no Quartz trim warning, and eight packages are proven under native AOT. An application on 4.5 compiles on 4.6 unchanged, unless it treats warnings as errors and has a cron literal that the new analyzer warningQZ0007reports. The upgrade has three required database migrations, each one nullable column that can run while 4.5 nodes are up; see Upgrading from 4.5 to 4.6.Highlights
TRIGGER_ACCESS. It is on by default, with an off switch. While any 4.5 node is live, every round takes the lock as before. SQL Server keeps the lock. ClusteringInterruptandInterruptFireInstancerecord a request for a firing on another node, and that node cancels the job's token after its next check-in.CancelPreviousnow works across nodes too. ClusteringExecutionHistoryOptions.WriteBehindIntervalset, a completion is queued and flushed with one status update per job per flush, at close to history-off throughput. Execution historyWithMisfireThresholdlets one trigger tolerate a longer delay, or a shorter one, without moving the store's threshold for every other trigger.DefaultMisfireHandlingsets what an unstated misfire instruction becomes, for every trigger type. TriggersPublishTrimmedandPublishAot.Quartz.Weasel.SQLitejoins the packages proven native on every pull request. Trimming and native AOTClustering
AdoJobStoreOptions.LockFreeFiringRounds, defaulttrue; flat keyquartz.jobStore.lockFreeFiringRounds.falserestores 4.5's rounds.QRTZ_SCHEDULER_STATE.QUARTZ_VERSION, from the required migration4.6/add_scheduler_version. While any 4.5 node is live, every round takes the lock (event 3517); once the last one ages out, rounds go lock-free (event 3518).[DisallowConcurrentExecution]candidate, takes it.contention, event 3060) until the backlog clears or 2 s pass, so a drained backlog is no slower than under 4.5.INTERRUPT_REQUESTED_TIMEon the firing'sQRTZ_FIRED_TRIGGERSrow, from migration4.6/add_fired_trigger_interrupt. The node running the firing reads its requests after every check-in, so a request lands within oneCheckinInterval, 7.5 seconds by default.truefromInterruptmeans interrupted here or asked, not stopped.CancelPreviousasks a 4.6 peer instead of waiting asBufferOne. The two firings overlap for up to one check-in interval.UseClustering()used to leave every node atNON_CLUSTERED.Execution groups
IConfigurationkeep their case, and an execution-limit prefix such astenant:*can be configured (#4107, closes #4093).Execution history
ExecutionHistoryOptions.WriteBehindIntervalqueues each completion; one writer per store flushes every interval, or at 256 waiting runs, in one transaction with oneQRTZ_JOB_STATUSupdate per job. In the census, history on ran at 276 firings per second, write-behind at 379, and history off at 388.4.6/add_execution_history_lookup_indexes.Triggers
TriggerBuilder<TJob>.WithMisfireThreshold(TimeSpan),ITrigger.MisfireThreshold: positive, whole milliseconds;nullis the store'sMisfireThreshold, as before.[CronTrigger]/[SimpleTrigger]MisfireThreshold(checked by the new analyzer errorQZ0008), the JSON and XML schedules,TriggerDetailsUpdate, the HTTP API'supdate-detailsand the dashboard's Edit details.... (truncated)
4.5.1
Three packages take the fixed versions of dependencies named in Microsoft's October 13 security advisories. There is no public API change and no schema change, and no other package changes.
Fixed
Quartz.Dashboard.AgentrequiresMicrosoft.AspNetCore.SignalR.Client10.0.13. 4.5.0 required 10.0.0, and every SignalR client before 10.0.13 brings aMicrosoft.AspNetCore.SignalR.Commoncovered by GHSA-334f-vvp4-7g6p (CVE-2026-70159). So an application referencing the agent got NU1903 at restore, and that is an error wherever warnings are errors. The fixed client asks forMicrosoft.Extensions.DependencyInjection,LoggingandLogging.Abstractions10.0.13 or later, so an application referencing the agent now resolves those at least that high. The agent's own nuspec no longer repeats the framework-extension floors it inherits fromQuartz. (#4065)Quartz.Weasel.OracleandQuartz.Weasel.SqlServerrequireSystem.Security.Cryptography.Pkcs9.0.21. Their database drivers, reached through Weasel, bring Pkcs 8.0.0 and 9.0.4, which GHSA-2fmv-rv2c-59x7 and GHSA-846f-f764-76mx cover. Neither package calls it. The direct reference lifts an application's graph to the fixed version, and can go once the drivers require a fixed one themselves. (#4065)The same SignalR fix ships for 3.x's
Quartz.Dashboardin 3.22.6.What's Changed
Other changes
Full Changelog: quartznet/quartznet@v4.5.0...v4.5.1
4.5.0
Quartz.NET 4.5 is one dashboard for a fleet. It fronts schedulers in other processes, on other machines and in other clusters, and tells apart workers that all run
QuartzScheduler. Targets fronting one clustered store show as one row with its nodes. A new package,Quartz.Dashboard.Agent, lets a worker dial out to the dashboard, so the worker opens no inbound port. Six more packages are proven under native AOT on every pull request. An application on 4.4 compiles on 4.5 unchanged, and the database schema did not change.Highlights
target/name. EachAddQuartzHttpClientregistration names its process withHttpClientOptions.Target, sow1/QuartzSchedulerandw2/QuartzSchedulerare two rows, beside store-attached windows and the local schedulers. Fleet...
Description has been truncated