Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Cron.

Talk:Cron: Difference between revisions

From MoodleDocs
(Put a example of a cron.php report with no activity and no triggers in mods and etc.)
Line 15: Line 15:
==Cron.php with no activity report==
==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.   
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.   
===The report==
===The report===
*I will delete this later, collapsed format is ok with me.
Server Time: Thu, 17 Nov 2011 13:49:52 +0100
Server Time: Thu, 17 Nov 2011 13:49:52 +0100
Cleaning up stale sessions
Cleaning up stale sessions

Revision as of 14:21, 17 November 2011

Comment from Eloy:

"If there is some template to mark one page as "require some love" I'd say https://docs.moodle.org/en/Cron requires it. It talks 99% of the time to use web-browser cron. Only 1 line talks about cli cron." --Helen Foster 20:44, 9 November 2011 (WST)

I just noticed this comment. Cron is not one of my special areas of knowledge but obviously use it. Did a quick "Cron CLI" on the web and got lost in how to program a php file to run cron jobs. Saw the note about 2.0 and CLI on this page.

I think Eloy's comment is also saying that this page is too long and could be split up? For example use a navtrail and a Cron template. Proposed pages:

  • Cron page - Overview section
  • Cron windows OS page - move section.
  • Cron MAC OS X page - move section
  • Cron on web hosting service page - move section
  • Cron linix OS page - move section

Comments? --Chris collman 23:25, 12 November 2011 (WST)

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.

The report

  • I will delete this later, collapsed format is ok with me.

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 --Chris collman 21:00, 17 November 2011 (WST)