modmore / Scheduler

A general, abstract method of scheduling various tasks within MODX Revolution.
https://www.modmore.com/extras/scheduler/documentation/
MIT License
11 stars 14 forks source link

add documentation for how to get $task in a processor #17

Closed christianseel closed 9 years ago

christianseel commented 9 years ago

To get the $task object in a processor it's required to call getProperty():

$task = $this->getProperty('task');
$task->schedule('+10 minutes', array());
Mark-H commented 9 years ago

Added note at https://www.modmore.com/extras/scheduler/documentation/developing-tasks/#jump_processor_tasks