only scheduled allowed
This commit is contained in:
parent
91a87fbc4d
commit
99ae1e6629
@ -64,7 +64,7 @@ func (k *KubernetesTools) LogWorkflow(execID string, namespace string, workflowN
|
|||||||
if exec == nil {
|
if exec == nil {
|
||||||
return errors.New("Could not retrieve workflow ID from execution ID " + execID)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
k.logWorkflow(namespace, workflowName, argoFilePath, stepMax, current_watch, previous_watch, argoLogs, seen, logFunc)
|
k.logWorkflow(namespace, workflowName, argoFilePath, stepMax, current_watch, previous_watch, argoLogs, seen, logFunc)
|
||||||
|
Loading…
Reference in New Issue
Block a user