fixing cron dependancies
This commit is contained in:
parent
580b492fd3
commit
1cfd684e89
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user