Skip to content

Commit e33ff33

Browse files
[supervisor] Let workspace fail when IDE never came up
1 parent 5b6325f commit e33ff33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,12 @@ supervisorLoop:
420420
err = cmd.Wait()
421421
if err != nil && !(strings.Contains(err.Error(), "signal: interrupt") || strings.Contains(err.Error(), "wait: no child processes")) {
422422
log.WithError(err).Warn("IDE was stopped")
423+
424+
ideWasReady := ideReady.Get()
425+
if !ideWasReady {
426+
log.WithError(err).Fatal("IDE failed to start")
427+
return
428+
}
423429
}
424430

425431
ideReady.Set(false)

0 commit comments

Comments
 (0)