Skip to content

fix(db): isolate concurrent queue watcher polls - #44

Merged
elpete merged 1 commit into
mainfrom
fix/concurrent-db-polls
Nov 18, 2026
Merged

elpete merged 1 commit into
mainfrom
fix/concurrent-db-polls

Conversation

@elpete

@elpete elpete commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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.

Runtime Version Passed
BoxLang 1.19.0+67 38/38
Lucee 5 5.4.8.2 38/38
Lucee 6 6.2.9.4 38/38
Adobe ColdFusion 2021 2021.0.23+330486 38/38
Adobe ColdFusion 2023 2023.0.26+331018 38/38
Adobe ColdFusion 2025 2025.0.12+331922 38/38

@elpete
elpete merged commit b018663 into main Nov 18, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant