Repository navigation
Reconcile module containers like server containers - #335
Merged
Merged
Conversation
A module event now schedules a module pass and the periodic sweep covers every module that has a container. The pass adopts a container id or status the daemon disagrees with, records a disappeared container as stopped, and recreates a missing one only when the module and its parent server are both meant to be running. An unreachable node leaves the record alone. The decision is a pure function; templates, hooks and dependency ordering stay with the module manager. UpdateModuleStatus is a targeted column write, so a pass cannot clobber a concurrent container id. Refs OSS-243
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 OSS-243. The reconciler previously skipped every module event; a sidecar removed or recreated outside the panel drifted from its row while the game looked healthy.
decideModule) so every branch is asserted without Docker. Templates, hooks and dependency ordering stay with the module manager.UpdateModuleStatusis a targeted column write, matching the reconciler's existing rule of never writing a whole row.Tests: decision table (10 cases), plus fake-daemon cases for adopt, record-as-stopped, unreachable node and deleted module; reconciler tests for event routing, sweep coverage, disabled module system and a failing pass that does not stop the worker.