Difference between revisions of "Scheduled tasks"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 3.6. Up-to-date documentation for the latest stable version of Moodle is likely available here: Scheduled tasks.

m (See also)
(note re running Cron thanks to Luis de Vasconcelos)
Line 3: Line 3:
  
 
An administrator can schedule routine tasks very precisely from ''Administration>Site administration>Server>Scheduled tasks.''
 
An administrator can schedule routine tasks very precisely from ''Administration>Site administration>Server>Scheduled tasks.''
 +
 +
(Note that you still need to run the CRON scripts (\admin\cli\cron.php or http:\\yoursite\admin\cron.php) at regular intervals.The script is best run every minute.)
  
 
[[File:scheduledtasks1.png]]
 
[[File:scheduledtasks1.png]]

Revision as of 11:09, 1 July 2014

New feature
in Moodle 3.6!


An administrator can schedule routine tasks very precisely from Administration>Site administration>Server>Scheduled tasks.

(Note that you still need to run the CRON scripts (\admin\cli\cron.php or http:\\yoursite\admin\cron.php) at regular intervals.The script is best run every minute.)

scheduledtasks1.png

Clicking the edit icon allows the administrator to specify the minute/hour/day/month or day of the week the task is to be run. It is also possible to reset the task to its default setting or disable it completely.

scheduledtasks2.png

Format for scheduling tasks

When typing into the fields, the format is the same as for Unix cron. Examples are as follows and are according to which field you are editing:

* is every minute, hour, day, month
*/2 is every two minutes, every two hours or every second day
2-10 is every minute between two and ten past the hour or every hour between 2 and 10 am 
0 is every Sunday
1 is every Monday or every January
2,5 is the second and 5th of the month, or February and May, or Tuesday and Friday.

See also

<mediaplayer>http://youtu.be/zPE3WdKppJI</mediaplayer>