Skip to content

Commit b563a33

Browse files
committed
fix: processes status is visible during shutdown
1 parent 9ae3d74 commit b563a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/project_runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,6 @@ func (p *ProjectRunner) shutDownAndWait(shutdownOrder []*Process) {
600600

601601
func (p *ProjectRunner) ShutDownProject() error {
602602
p.runProcMutex.Lock()
603-
defer p.runProcMutex.Unlock()
604-
605603
shutdownOrder := []*Process{}
606604
if p.isOrderedShutdown {
607605
err := p.project.WithProcesses([]string{}, func(process types.ProcessConfig) error {
@@ -619,6 +617,7 @@ func (p *ProjectRunner) ShutDownProject() error {
619617
shutdownOrder = append(shutdownOrder, proc)
620618
}
621619
}
620+
p.runProcMutex.Unlock()
622621

623622
var nameOrder []string
624623
for _, v := range shutdownOrder {
@@ -1150,6 +1149,7 @@ func (p *ProjectRunner) prepareEnvCmds() {
11501149
p.project.Environment = make(types.Environment, 0)
11511150
}
11521151
p.project.Environment = append(p.project.Environment, fmt.Sprintf("%s=%s", env, output))
1152+
log.Debug().Msgf("Env variable %s set to %s", env, output)
11531153
}
11541154
}
11551155

0 commit comments

Comments
 (0)