only scheduled allowed
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user