No matter what I do, my task from local plugin is not running
Task is scheduled to run @ 15:55:
server time and crond status, showing that cron.php is scheduled to run
All other tasks are run (cron log shows activity every 1 minute), only my plugin turns into ASAP and stays like that:
What is wrong? How can I debug this?
Source code:
/local/studissync/db/tasks.php:
$tasks = array(
array(
'classname' => 'local_studissync\task\worker',
'blocking' => 0,
'minute' => '55',
'hour' => '15',
'day' => '*',
'dayofweek' => '*',
'month' => '*'
)
);
/local/studissync/classes/task/worker.php:
namespace local_studissync\task;
defined('MOODLE_INTERNAL') || die();
class worker extends \core\task\scheduled_task {
public function execute() {
mtrace("Starting sync with Studis!");
$sync = new \local_studissync\sync();
$result = $sync->do_sync();
(more code with mtrace commands inside)
}
namespace local_studissync;
defined('MOODLE_INTERNAL') || die();
class sync{
public function do_sync(){
(more code that returns array at the end)
}