dispaying te dates in getExecutions

This commit is contained in:
pb 2025-05-21 15:55:47 +02:00
parent f7e4e11705
commit e79e909805

View File

@ -196,7 +196,8 @@ 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)) )
// 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))