state execution

This commit is contained in:
mr
2024-11-12 13:36:18 +01:00
parent b5dba2458a
commit 6497e7dbdd
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ func (wfa *workflowExecutionMongoAccessor) LoadOne(id string) (utils.DBObject, i
fmt.Println("workflow: ", workflow.State, time.Now().UTC().After(*workflow.ExecDate))
if workflow.State == SCHEDULED && time.Now().UTC().After(*workflow.ExecDate) {
workflow.State = FORGOTTEN
wfa.UpdateOne(&workflow, id)
wfa.GenericRawUpdateOne(&workflow, id, wfa)
}
return &workflow, 200, nil
}