From e79e90980585f893b735986663d63349302ad084 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 21 May 2025 15:55:47 +0200 Subject: [PATCH] dispaying te dates in getExecutions --- models/workflow_execution/workflow_scheduler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/workflow_execution/workflow_scheduler.go b/models/workflow_execution/workflow_scheduler.go index c02be81..6499139 100644 --- a/models/workflow_execution/workflow_scheduler.go +++ b/models/workflow_execution/workflow_scheduler.go @@ -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))