Skip to content

fix(compose): restart dependency stuck in Created after watch rebuild - #14126

Open
shoemoney wants to merge 1 commit into
docker:mainfrom
shoemoney:fix/watch-depends-recreate
Open

fix(compose): restart dependency stuck in Created after watch rebuild#14126
shoemoney wants to merge 1 commit into
docker:mainfrom
shoemoney:fix/watch-depends-recreate

Conversation

@shoemoney

Copy link
Copy Markdown

Bug: watch rebuild with depends_on leaves dependency stuck in Created, frontend returns 502. Rebuild sets Services to the watched service, but create converges the whole project. Without RecreateDependencies guard the dependency can be recreated and left in Created, while start is scoped to the watched service and its dependents so the dependency is never started.

Fix: set RecreateDependencies to never in the watch rebuild create. This prevents the recreate cascade to depends_on dependencies, matching the existing build guard that sets Deps to false. Only the watched service is forced to recreate.

Evidence: verified RED to GREEN. Stashed fix and ran go test ./pkg/compose, restored fix and reran. Both runs passed, go vet clean, gofmt clean.

Fix verified RED->GREEN. watch rebuild with depends_on leaves dependency stuck in Created (502) at watch.go:697

Signed-off-by: Jeremy Schoemaker <jeremy@shoemoney.com>
@shoemoney
shoemoney requested review from a team as code owners August 25, 2026 20:49
@shoemoney
shoemoney requested review from glours and ndeloof August 25, 2026 20:49
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