Hi Benjamin,
Is this process new to Moodle V 3.10? I have never encountered the need for this command before. Do I add the command to under the account cron? This is what I have right now: /usr/local/bin/php /home/moodle4teachers/public_html/admin/cli/cron.php >/dev/null 2>&1 and it works for everything like badges, mail messages, course completion and so on.
This is what I got when I added your /usr/bin/php /moodle_path/php/admin/tool/task/cli/adhoc_task.php --execute
Cron <moodle4teachers@
server> /usr/bin/php /moodle_path/php/admin/tool/task/cli/adhoc_task.php --execute
Status: 404 Not Found
Content-type: text/html; charset=UTF-8
No input file specified.
This is what I see under cron for forums
$task = new \mod_forum\task\send_user_digests();
$task->set_userid($user->id);
$task->set_component('mod_forum');
$task->set_next_run_time($digesttime);
\core\task\manager::reschedule_or_queue_adhoc_task($task);
$usercounts['digests']++;
$send = true;
}
if (!empty($individualpostdata)) {
$usercounts['messages'] += count($individualpostdata);
$task = new \mod_forum\task\send_user_notifications();
$task->set_userid($user->id);
$task->set_custom_data($individualpostdata);
$task->set_component('mod_forum');
\core\task\manager::queue_adhoc_task($task);
$counts['individuals']++;
$send = true;
}