mirror of
				https://github.com/onepanelio/onepanel.git
				synced 2025-10-31 00:36:18 +08:00 
			
		
		
		
	Merge pull request #711 from rushtehrani/fix/send-status
fix: Only inject one sys-send-status task
This commit is contained in:
		| @@ -1808,13 +1808,13 @@ func injectWorkflowExecutionStatusCaller(wf *wfv1.Workflow, phase wfv1.NodePhase | ||||
| 				for j, task := range t.DAG.Tasks { | ||||
| 					if task.Dependencies == nil { | ||||
| 						wf.Spec.Templates[i].DAG.Tasks[j].Dependencies = []string{containerTemplate.Name} | ||||
| 						wf.Spec.Templates[i].DAG.Tasks = append(t.DAG.Tasks, wfv1.DAGTask{ | ||||
| 							Name:     containerTemplate.Name, | ||||
| 							Template: containerTemplate.Name, | ||||
| 						}) | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 			wf.Spec.Templates[i].DAG.Tasks = append(t.DAG.Tasks, wfv1.DAGTask{ | ||||
| 				Name:     containerTemplate.Name, | ||||
| 				Template: containerTemplate.Name, | ||||
| 			}) | ||||
| 			break | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andrey Melnikov
					Andrey Melnikov