fix: race on cluster init by waiting for corrosion service to become ready with schema applied

This commit is contained in:
Pasha Sviderski
2025-07-25 16:28:32 +10:00
parent 3faaac4da7
commit 4166474ee8
5 changed files with 83 additions and 30 deletions
+1
View File
@@ -321,6 +321,7 @@ func (m *Machine) Run(ctx context.Context) error {
if err := m.config.CorrosionService.Start(ctx); err != nil {
return fmt.Errorf("start corrosion service: %w", err)
}
slog.Info("Corrosion service started.")
}
// Use an errgroup to coordinate error handling and graceful shutdown of multiple machine components.