you can stop the scheduler with ctrl-c... the task will be set as "STOPPED" and scheduler will exit (it won't restart).
scheduler (and, in general, any program) can't know how much work in a single task it has to perform yet if not coded accordingly..... you should write your function adding some "breakpoints" (let's say, updating a record in a db table) to report progress within the single task.... Scheduler is meant to run 24/7, but in trunk there is an option (max_empty_runs) to allow scheduler to "kill itself" after some loops not grabbing a single task. It's meant to save resources if you want the scheduler to run, let's say, every 4 hours, and process all the tasks it finds on queue, if your app doesn't need a "greedy" worker processing tasks all the time. Il giorno lunedì 28 maggio 2012 15:40:10 UTC+2, simon ha scritto: > > Is it possible to cancel a task in the scheduler once it has started > running? > > Also I would like to update a message field to say "x% complete". How does > one add a bespoke field to the scheduler tables? >