Skip to content

Commit 83521b8

Browse files
committed
fix: logging problem on process compose waitTill
1 parent c19f781 commit 83521b8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pkg/exec/process-compose/compose.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,10 @@ func (pc *ProcessComposeCtx) WaitTill(
307307
switch {
308308
case cond.State == ProcessRunning && p.Status == "running":
309309
log.Infof("Process condition: '%s': 'running' ✅", p.Name)
310-
311-
fallthrough
310+
condsFulfilled += 1
312311
case cond.State == ProcessReady && p.IsReady == "ready":
313312
log.Infof("Process condition: '%s': 'ready' ✅", p.Name)
314-
315-
fallthrough
313+
condsFulfilled += 1
316314
case cond.State == ProcessCompleted && p.Status == "completed":
317315
log.Infof("Process condition: '%s': 'completed' ✅", p.Name)
318316
condsFulfilled += 1
@@ -321,8 +319,12 @@ func (pc *ProcessComposeCtx) WaitTill(
321319
}
322320

323321
if condsFulfilled == len(conds) {
322+
log.Infof("All conditions fulfilled.")
323+
324324
return true, nil
325325
}
326+
327+
log.Infof("Conditions fulfilled: '%v/%v'", condsFulfilled, len(conds))
326328
}
327329

328330
// Sleep for or until context is cancelled or check interval reached.

0 commit comments

Comments
 (0)