only scheduled allowed

This commit is contained in:
mr 2025-02-18 08:17:56 +01:00
parent 91a87fbc4d
commit 99ae1e6629

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.FAILURE || exec.State == enum.SUCCESS {
if exec.State != enum.SCHEDULED {
return nil
}
k.logWorkflow(namespace, workflowName, argoFilePath, stepMax, current_watch, previous_watch, argoLogs, seen, logFunc)