oclib update + kubernetes client for argo submit

This commit is contained in:
mr
2025-02-18 15:04:52 +01:00
parent 697d7a7145
commit 47363566b2
3 changed files with 18 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ func (k *KubernetesTools) LogWorkflow(execID string, namespace string, workflowN
if exec == nil {
return errors.New("Could not retrieve workflow ID from execution ID " + execID)
}
if exec.State != enum.SCHEDULED {
if exec.State == enum.DRAFT || exec.State == enum.FAILURE || exec.State == enum.SUCCESS {
return nil
}
k.logWorkflow(namespace, workflowName, argoFilePath, stepMax, current_watch, previous_watch, argoLogs, seen, logFunc)