dispaying te dates in getExecutions
This commit is contained in:
parent
77554cbcf5
commit
f7e4e11705
@ -1,6 +1,7 @@
|
||||
package workflow_execution
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
@ -192,6 +193,10 @@ func (ws *WorkflowSchedule) getDates() ([]Schedule, error) {
|
||||
if err != nil {
|
||||
return schedule, errors.New("Bad cron message: " + err.Error())
|
||||
}
|
||||
|
||||
toto, _ := json.MarshalIndent(sched,"","")
|
||||
fmt.Println(string(toto))
|
||||
|
||||
// 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))
|
||||
|
Loading…
Reference in New Issue
Block a user