Hello
I have moodle instance and I found in the notification that the corn job does not run from 182 days, I want to configure it to run everyday @ 12 am , how can I do that ?
In reply to Amira Elsayed
Ri: How to schedule moodle cron job to run every day at 12 am
by Sergio Rabellino -
You should run the cron job every 1 or max 2 minutes, or your user experience will be affected.
Check the official instruction about cron here: https://docs.moodle.org/311/en/Cron : the setup varies depending on your specific installation choices.
Check the official instruction about cron here: https://docs.moodle.org/311/en/Cron : the setup varies depending on your specific installation choices.
In reply to Amira Elsayed
Re: How to schedule moodle cron job to run every day at 12 am
by Visvanath Ratnaweera -
If the cron process was not run for half a year, then once a day could be a start.
Edit the 'crontab -u www-data -e' to:
Edit the 'crontab -u www-data -e' to:
* 12 * * * /usr/bin/php /path/to/moodle/admin/cli/cron.phpSee https://docs.moodle.org/en/Cron#Finding_the_right_place_to_put_the_command for the background.
You can invoke the cron process through the web, visit yoursite/admin/cron.php from a browser if you have enabled that. See https://docs.moodle.org/en/Cron#The_web_based_Moodle_cron_command.