From 67ebeca1f48955cdfc42f6df0cfac5dd8e7c445d Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 21 Jan 2025 17:04:38 +0100 Subject: [PATCH] light modification --- entrypoint.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entrypoint.go b/entrypoint.go index 8830f01..79afe1a 100644 --- a/entrypoint.go +++ b/entrypoint.go @@ -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,