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]

View File

@ -126,7 +126,7 @@ func executeInside(execID string, ns string, argo_file_path string) {
}
name, err := t.CreateArgoWorkflow(argo_file_path, ns)
_ = name
// _ = name
if err != nil {
logger.Error().Msg("Could not create argo workflow : " + err.Error())
logger.Info().Msg(fmt.Sprint("CA :" + conf.GetConfig().KubeCA))
@ -143,6 +143,8 @@ func executeInside(execID string, ns string, argo_file_path string) {
if err != nil {
logger.Error().Msg("Could not log workflow : " + err.Error())
}
logger.Info().Msg("Finished, exiting...")
}
}