Repository navigation
fix(db): isolate concurrent queue watcher polls - #44
Merged
Merged
Conversation
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.
Give BoxLang database polls independent request contexts. On Lucee and Adobe ColdFusion, protect the mapping update and let pools reserve and dispatch jobs concurrently.
The regression holds one pool in deserialization and checks that another pool can settle a job before the first resumes. All 228 focused checks passed locally across BoxLang 1.19, Lucee 5 and 6, and Adobe ColdFusion 2021, 2023, and 2025.
The regression holds one watcher inside deserialization after it reserves a job. A second watcher returns and its job records a failure before the first watcher resumes and its job succeeds. The test checks the reservation owner, one execution per job, mapping resolution, and BoxLang request isolation. It reproduced shared request state on unmodified cbq 7.2.0.
Local verification
All 38 focused tests passed on each engine with ColdBox 7.5.2+27 and MySQL 8.0.46. The suites cover concurrent polling, polling configuration, attempt ownership, retries, maximum attempts, and timeout recovery.