Skip to content

Conversation

@dobrac
Copy link
Contributor

@dobrac dobrac commented Oct 18, 2025

Fix orchestrator/template manager shutdown exit code by properly handling exit errors and improving logger messages observability.

@dobrac dobrac added the bug Something isn't working label Oct 18, 2025
@dobrac dobrac force-pushed the fix-template-manager-shutdown branch from 6a6d947 to 62b17cb Compare October 18, 2025 13:23
Comment on lines +192 to +205
serviceError := make(chan error)
defer close(serviceError)

var g errgroup.Group
// defer waiting on the group so that this runs even when
// there's a panic.
defer func(g *errgroup.Group) {
err := g.Wait()
var sde serviceDoneError
if err != nil && !errors.As(err, &sde) {
globalLogger.Error("error while waiting for services to finish", zap.Error(err))
success = false
}
}(&g)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just moved down so it can use the global logger

@dobrac
Copy link
Contributor Author

dobrac commented Oct 21, 2025

this will be refactored differently in: #1362

@dobrac dobrac closed this Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants