mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e7e0e9424d
MINOR added QuarterHourly scheduled tasks, tidied documentation a little bit git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@84569 467b73ca-7a2a-4603-9d3b-597d59a354a9
30 lines
1.2 KiB
PHP
Executable File
30 lines
1.2 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Abstract task representing scheudled tasks.
|
|
* You can use the different subclasses {@link HourlyTask}, {@link DailyTask},
|
|
* {@link WeeklyTask} to determine when a task should be run,
|
|
* and use automation tools such as unix cron to trigger them.
|
|
*
|
|
* Example Cron:
|
|
* <code>
|
|
* # Quarter-hourly task (every hour at 25 minutes past) (remove space between first * and /15)
|
|
* * /15 * * * * www-data /my/webroot/sapphire/cli-script.php /QuarterlyHourlyTask > /var/log/silverstripe_quarterhourlytask.log
|
|
*
|
|
* # HourlyTask (every hour at 25 minutes past)
|
|
* 25 * * * * www-data /my/webroot/sapphire/cli-script.php /HourlyTask > /var/log/silverstripe_hourlytask.log
|
|
*
|
|
* # DailyTask (every day at 6:25am)
|
|
* 25 6 * * * www-data /my/webroot/sapphire/cli-script.php /DailyTask > /var/log/silverstripe_dailytask.log
|
|
*
|
|
* # WeelkyTask (every Monday at 6:25am)
|
|
* 25 6 1 * * www-data /my/webroot/sapphire/cli-script.php /WeeklyTask > /var/log/silverstripe_weeklytask.log
|
|
* </code>
|
|
*
|
|
* @todo Improve documentation
|
|
* @package sapphire
|
|
* @subpackage cron
|
|
*/
|
|
abstract class ScheduledTask extends CliController {
|
|
// this class exists as a logical extension
|
|
}
|
|
?>
|