Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Cron reports.

Cron reports

From MoodleDocs

This page requires updating for Moodle 2.0. Please do so and remove this template when finished.


When admin/cron.php is run, it calls lib/cronlib.php which performs necessary Cron processes and gives a report on the screen.

Cron.php with no activity report

Repeatly triggered /admin/cron.php on a localhost that had no activity except for the running of cron. This localhost had several advanced features turned on including course completion. Periodically cron.php would find assignment_cron, chat_cron, forum_cron, scrom_cron to run, which are part of the activity modules. The rss_client would have activity periodically. For future reference, here is a report showing no activity and nothing that needs to be done.

Example report - no recent activity

Server Time: Thu, 17 Nov 2011 13:49:52 +0100
Cleaning up stale sessions
Starting activity modules
Finished activity modules
Starting blocks
Finished blocks
Starting quiz reports
Finished quiz reports
Starting admin reports
Finished admin reports
Starting main gradebook job ...
done.
Starting processing the event queue...
done.
Starting the completion cron...
Marking users as started
Running completion_criteria_date->cron()
Running completion_criteria_activity->cron()
Running completion_criteria_duration->cron()
Running completion_criteria_grade->cron()
Running completion_criteria_course->cron()
Aggregating completions
done
Checking automated backup status...INACTIVE
Running auth crons if required...
Running enrol crons if required...
...preventing stats to run, more than 4 hours since scheduled time.
Starting course reports
Finished course reports
Starting gradebook plugins
Finished gradebook plugins
Fetching external blog entries...done.
Deleting blog associations linked to non-existent contexts...done.
Starting registration update on hubs...
Finished registration update on hubs.
Deleting old draft files... done.
Deleting session linked tokens more than one day old...done.
Processing customized cron scripts ...Processing cron function for local_qeupgradehelper...
done. (1 dbqueries, 0 seconds)
done.
Cron script completed correctly
Execution took 0.302819 seconds