workflow scheduler create booking with a booking execution lot id
This commit is contained in:
		@@ -91,7 +91,9 @@ func (wfa *WorkflowExecution) ArgoStatusToState(status string) *WorkflowExecutio
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (r *WorkflowExecution) GenerateID() {
 | 
					func (r *WorkflowExecution) GenerateID() {
 | 
				
			||||||
	r.UUID = uuid.New().String()
 | 
						if r.UUID == "" {
 | 
				
			||||||
 | 
							r.UUID = uuid.New().String()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (d *WorkflowExecution) GetName() string {
 | 
					func (d *WorkflowExecution) GetName() string {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -152,6 +152,7 @@ func (ws *WorkflowSchedule) getExecutions(workflow *workflow.Workflow) ([]*Workf
 | 
				
			|||||||
	for _, date := range dates {
 | 
						for _, date := range dates {
 | 
				
			||||||
		obj := &WorkflowExecution{
 | 
							obj := &WorkflowExecution{
 | 
				
			||||||
			AbstractObject: utils.AbstractObject{
 | 
								AbstractObject: utils.AbstractObject{
 | 
				
			||||||
 | 
									UUID: uuid.New().String(),                                 // set the uuid of the execution
 | 
				
			||||||
				Name: workflow.Name + "_execution_" + date.Start.String(), // set the name of the execution
 | 
									Name: workflow.Name + "_execution_" + date.Start.String(), // set the name of the execution
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			ExecDate:   date.Start,       // set the execution date
 | 
								ExecDate:   date.Start,       // set the execution date
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user