Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit f3953f1

Browse files
committed
fix: wait for services to be healthy after restart
1 parent 01e6782 commit f3953f1

File tree

6 files changed

+619
-0
lines changed

6 files changed

+619
-0
lines changed

cmd/dev/up.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ func restart(
259259
return fmt.Errorf("failed to restart services: %w", err)
260260
}
261261

262+
ce.Infoln("Verifying services are healthy...")
263+
264+
// this ensures that all services are healthy before returning
265+
if err := dc.Start(ctx); err != nil {
266+
return fmt.Errorf("failed to wait services: %w", err)
267+
}
268+
262269
return nil
263270
}
264271

examples/myproject/functions/package-lock.json

Lines changed: 332 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)