light modification

This commit is contained in:
mr 2025-01-21 17:04:38 +01:00
parent b45e882559
commit 67ebeca1f4

View File

@ -289,8 +289,7 @@ func ToScheduler(m interface{}) (n *workflow_execution.WorkflowSchedule) {
return m.(*workflow_execution.WorkflowSchedule)
}
func (r *Request) Schedule(wfID string, start string, end string, durationInS float64, cron string) (*workflow_execution.WorkflowSchedule, error) {
scheduler := workflow_execution.NewScheduler(start, end, durationInS, cron)
func (r *Request) Schedule(wfID string, scheduler *workflow_execution.WorkflowSchedule) (*workflow_execution.WorkflowSchedule, error) {
if _, _, err := scheduler.Schedules(wfID, &tools.APIRequest{
Caller: r.caller,
Username: r.user,