In my application I need to stop/continue the execution of scheduled jobs. I can use job.uneschedule to stop a job, but is there a way to start the job again, something like "job.schedule"?
On Tue, Nov 29, 2011 at 10:17:02AM -0800, Henrique wrote:
> In my application I need to stop/continue the execution of scheduled > jobs. I can use job.uneschedule to stop a job, but is there a way to > start the job again, something like "job.schedule"?
Hello Henrique,
there is no such thing yet. You could unschedule and then reschedule though.
> On Tue, Nov 29, 2011 at 10:17:02AM -0800, Henrique wrote:
>> In my application I need to stop/continue the execution of scheduled >> jobs. I can use job.uneschedule to stop a job, but is there a way to >> start the job again, something like "job.schedule"?
> there is no such thing yet. You could unschedule and then reschedule though.
> I think it's an excellent idea. I will add that.
Hello Henrique,
I've just added Job#pause and #resume and Scheduler#pause(job_id) and #resume(job_id) to rufus-scheduler: