diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index 6499139..1d223d9 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -197,7 +197,10 @@ func (ws *WorkflowSchedule) getDates() ([]Schedule, error) { toto, _ := json.MarshalIndent(sched,"","") fmt.Println(string(toto)) s := sched.Next(ws.Start) - fmt.Println("!s.IsZero() : " + fmt.Sprint(s.IsZero()) + "s.Before(*ws.End) : " + fmt.Sprint(s.Before(*ws.End)) ) + fmt.Println("s.IsZero() : " + fmt.Sprint(s.IsZero()) + "s.Before(*ws.End) : " + fmt.Sprint(s.Before(*ws.End)) ) + tata, _ := json.MarshalIndent(s,"","") + fmt.Println("s = " + string(tata)) + // loop through the cron schedule to set the executions for s := sched.Next(ws.Start); !s.IsZero() && s.Before(*ws.End); s = sched.Next(s) { fmt.Println("next execution :" + fmt.Sprint(s))