fixing cron dependancies

This commit is contained in:
mr 2024-08-08 11:26:10 +02:00
parent 580b492fd3
commit 1cfd684e89

View File

@ -51,7 +51,7 @@ func (wfa *workflowMongoAccessor) getExecutions(id string, data *Workflow) ([]*w
if data.Schedule.End == nil {
return workflows_execution, errors.New("a cron task should got a end date.")
}
cronStr := strings.Split(" ", data.Schedule.Cron)
cronStr := strings.Split(data.Schedule.Cron, " ")
if len(cronStr) < 6 {
return nil, errors.New("Bad cron message: " + data.Schedule.Cron + ". Should be at least ss mm hh dd MM dw")
}