Skip to content

Commit 60a85a4

Browse files
committed
don't run ports and IDE in headless workspaces
1 parent 88f310a commit 60a85a4

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
@@ -178,6 +178,9 @@ func Run(options ...RunOption) {
178178
go taskManager.Run(ctx, &wg)
179179
go func() {
180180
defer wg.Done()
181+
if cfg.isHeadless() {
182+
return
183+
}
181184
portMgmt.Run()
182185
}()
183186

@@ -328,6 +331,9 @@ func reaper(ctx context.Context, wg *sync.WaitGroup) {
328331

329332
func startAndWatchIDE(ctx context.Context, cfg *Config, wg *sync.WaitGroup, ideReady *ideReadyState) {
330333
defer wg.Done()
334+
if cfg.isHeadless() {
335+
return
336+
}
331337

332338
type status int
333339
const (

0 commit comments

Comments
 (0)