small tweaks

This commit is contained in:
pb
2025-05-23 17:56:30 +02:00
parent bdbbd7697a
commit 7c913bec0e
2 changed files with 5 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ func LogKubernetesArgo(wfName string, namespace string, watcher watch.Interface)
if node.Phase.Completed() {
wfl.Info().Msg(wfName + " worflow completed")
wg.Wait()
wfl.Info().Msg(wfName + " exiting")
break
}
if node.Phase.FailedOrError() {
@@ -205,6 +206,7 @@ func retrieveCondition(wf *wfv1.Workflow) (c Conditions) {
// Function needed to be executed as a go thread
func logKubernetesPods(executionId string, wfName string,podName string, logger zerolog.Logger, wg *sync.WaitGroup){
defer wg.Done()
s := strings.Split(podName, ".")
name := s[0] + "-" + s[1]