Skip to content

Fixed lifecycle for rs350OccupancyProcessModule and wait until process module has started for helpers to be created - #48

Closed
kalynstricklin wants to merge 1 commit into
ORNL:mainfrom
kalynstricklin:fix/npe-emlAutoAdjudicationHelper
Closed

kalynstricklin wants to merge 1 commit into
ORNL:mainfrom
kalynstricklin:fix/npe-emlAutoAdjudicationHelper

Conversation

@kalynstricklin

Copy link
Copy Markdown
Collaborator

No description provided.

@kalynstricklin
kalynstricklin marked this pull request as ready for review November 24, 2026 21:25
@tyronechrisharris

Copy link
Copy Markdown
Collaborator

Thank you @kalynstricklin — your Rs350OccupancyProcessModule cleanup has been integrated with Co-authored-by attribution into main (7a7324ae, commit c0c509ab) via ORNL/osh-oakridge-modules#58 for OSCAR v3.11.14!

How #48 and #56 Were Unified for 50-Lane Scale

  1. Included Directly from #48: Removed the unclosed hub-wide ModuleRegistry.EVENT_GROUP_ID wildcard subscription and while (isStarting) spin-wait thread from Rs350OccupancyProcessModule — eliminating EventBus listener accumulation across module restarts.
  2. Why LaneSystem Helper Creation Was Kept Non-Blocking (OccupancyProcessStarter + Re-Attach): Deferring createHelpers() until ModuleEvent.ModuleState.STARTED risked missing early boot ordering when RS350Sensor reached STARTED prior to LaneSystem.afterStart(). Instead, we combined #48's Rs350OccupancyProcessModule cleanup with OccupancyProcessStarter.startIfStranded(...) (extended to await initAsync = true INITIALIZING -> INITIALIZED on LaneSystem.threadPool off the EventBus thread) plus LaneSystem's idempotent helper re-attach hooks (WebIdHelper, OcrHelper, EmlAutoAdjudicationHelper, AdjudicationControl).

Note: Your ORNL/* account permissions have also been upgraded to Write (branch maintainer) across all 9 repositories so you and the review team can collaborate directly on shared feat/* / fix/* branches (AGENTS.md). Closing #48 as incorporated into main (7a7324ae).

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.

2 participants