Repository navigation
A generated job or trigger identity in a persistent store logs a warning (3.x) - #4114
Merged
Merged
Conversation
…ing (3.x) AddJob, AddTrigger and ScheduleJob with no WithIdentity - on the configurator or on QuartzOptions - store a key generated afresh on every start. A persistent store finds nothing to replace and keeps another copy each time, and every copy of a trigger fires. Each registration records the generated key in QuartzOptions while its builder still knows none was given, rather than matching a GUID-shaped name, which a job may carry on purpose; TriggerBuilder gains an internal Key for that, as JobBuilder already had. After scheduling, when the scheduler's metadata says the store supports persistence, ContainerConfigurationProcessor logs one warning per such registration, naming the call and its job type (or the job key, for AddTrigger), the generated key, and WithIdentity. The default and named scheduler factories both go through it. The text matches main's event 4030; 3.x has no event-id catalogue. Part of #4095 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 19, 2026
Merged
This was referenced Oct 26, 2026
This was referenced Oct 29, 2026
This was referenced Nov 5, 2026
This was referenced Nov 13, 2026
This was referenced Nov 23, 2026
This was referenced Nov 30, 2026
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.
Part of #4095. Companion of #4113 on
main, the warning only.AddJob,AddTriggerandScheduleJobwith noWithIdentitystore a key generated afresh on every start. A persistent store finds nothing to replace and keeps another copy each time, and every copy of a trigger fires. 3.x behaves as 4.x did, and now says so at startup:QuartzOptionswhile its builder still knows none was given. That covers the configurator'sAddJob/AddTrigger/ScheduleJobandQuartzOptions.AddJob/AddTrigger. A job named with a GUID on purpose does not warn.TriggerBuildergains aninternal Key, asJobBuilderalready has.ContainerConfigurationProcessor.ScheduleJobslogs one warning per such registration after scheduling, whenGetMetaData().JobStoreSupportsPersistenceis true. Both the default and the named scheduler factories go through it.ISchedulerdirectly. The message texts main changed are left as they are here.Verification
dotnet build Quartz.slnx: 0 warnings, 0 errors.dotnet test src/Quartz.Tests.Unit: net10.0 2111 passed / 4 skipped; net472 2099 passed / 5 skipped.GeneratedIdentityWarningTest(8 cases) passes on both frameworks. The persistent store is aRAMJobStorethat reportsSupportsPersistence, asClusteredDefaultInstanceIdWarningTestdoes forClustered; this unit project has no SQLite reference.🤖 Generated with Claude Code