light modification
This commit is contained in:
parent
b45e882559
commit
67ebeca1f4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user