Skip to content

Commit f3e5f57

Browse files
release lock on global process-compose before attaching
1 parent dd069a4 commit f3e5f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ func AttachToProcessManager(ctx context.Context, w io.Writer, projectDir string,
311311
return err
312312
}
313313

314-
defer configFile.Close()
315314
config := readGlobalProcessComposeJSON(configFile)
315+
configFile.Close() // release the lock as this command is long running
316316

317317
project, ok := config.Instances[projectDir]
318318
if !ok {

0 commit comments

Comments
 (0)