File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments