diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index 3398371..b5727a7 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -113,6 +113,7 @@ func (ws *WorkflowSchedule) Schedules(wfID string, request *tools.APIRequest) (* return nil, []*WorkflowExecutions{}, errors.New("purge draft" + fmt.Sprintf("%v", err)) } exec.GenerateID() + exec.StoreDraftDefault() // Should DELETE the previous execution2 utils.GenericStoreOne(exec, NewAccessor(request)) }