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

This commit is contained in:
Pasha Sviderski committed 2025-07-25 16:28:32 +10:00
1 parent 3faaac4da7
commit 4166474ee8
5 files changed
+83 -30

No files matched your search

+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.