func (r *RunOnceRunner) StartWithSchedule(application *framework.Application, state framework.MesosState, cronScheduler framework.CronScheduler) int64 { id, _ := cronScheduler.AddFunc(application.StartTime, func() { cronScheduler.AddFunc(application.TimeSchedule, func() { <-r.StageApplication(application, state) }) }) return id }
func (r *RunOnceRunner) DeleteSchedule(id int64, cronScheduler framework.CronScheduler) { cronScheduler.DeleteJob(id) }