Hello there.
Moodle version: 3.2.4+, PHP 5.6.x, MySQL 5.6, RHEL 64-bit
We have a test platform and would not like the cron to execute sending out email notifications to users and wanted to run these specific ones.
- \core\task\badges_cron_task
- \core\task\completion_daily_task
- \core\task\completion_regular_task
When I tried to run one of them, I get the following error:
[root@testmoodle testmoodle]# php lib/classes/task/badges_cron_task.php -v
PHP Fatal error: Class 'core\task\scheduled_task' not found in /opt/rh/httpd24/root/var/www/html/testmoodle/lib/classes/task/badges_cron_task.php on line 29
PHP Stack trace:
PHP 1. {main}() /opt/rh/httpd24/root/var/www/html/testmoodle/lib/classes/task/badges_cron_task.php:0
What do I need to just run one of them via the command line?
Thanks