mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1195 from chillu/pulls/deprecate-scheduled-tasks
API Deprecated ScheduledTask and subclasses
This commit is contained in:
commit
876c660018
@ -218,4 +218,7 @@ through the CMS controllers, providing a simple level of security.
|
||||
- `DataList#find`
|
||||
- `DataList#byIDs`
|
||||
- `DataList#reverse`
|
||||
* `DataList#dataQuery` has been changed to return a clone of the query, and so can't be used to modify the list's query directly. Use `DataList#alterDataQuery` instead to modify dataQuery in a safe manner.
|
||||
* `DataList#dataQuery` has been changed to return a clone of the query, and so can't be used to modify the list's query directly. Use `DataList#alterDataQuery` instead to modify dataQuery in a safe manner.
|
||||
* `ScheduledTask`, `QuarterHourlyTask`, `HourlyTask`, `DailyTask`, `MonthlyTask`, `WeeklyTask` and
|
||||
`YearlyTask` are deprecated, please extend from `BuildTask` or `CliController`,
|
||||
and invoke them in self-defined frequencies through Unix cronjobs etc.
|
@ -5,6 +5,8 @@
|
||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||
* they need to be triggered by an external automation tool like unix cron.
|
||||
* See {@link ScheduledTask} for details.
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @todo Improve documentation
|
||||
* @package framework
|
||||
|
@ -5,6 +5,8 @@
|
||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||
* they need to be triggered by an external automation tool like unix cron.
|
||||
* See {@link ScheduledTask} for details.
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @package framework
|
||||
* @subpackage cron
|
||||
|
@ -5,6 +5,8 @@
|
||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||
* they need to be triggered by an external automation tool like unix cron.
|
||||
* See {@link ScheduledTask} for details.
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @package framework
|
||||
* @subpackage cron
|
||||
|
@ -5,6 +5,8 @@
|
||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||
* they need to be triggered by an external automation tool like unix cron.
|
||||
* See {@link ScheduledTask} for details.
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @package framework
|
||||
* @subpackage cron
|
||||
|
@ -50,6 +50,8 @@
|
||||
* # WeelkyTask (every Monday at 6:25am)
|
||||
* 25 6 1 * * www-data /webroot/framework/cli-script.php /WeeklyTask > /var/log/weeklytask.log
|
||||
* </code>
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @todo Improve documentation
|
||||
* @package framework
|
||||
@ -57,4 +59,15 @@
|
||||
*/
|
||||
abstract class ScheduledTask extends CliController {
|
||||
// this class exists as a logical extension
|
||||
|
||||
public function init() {
|
||||
Deprecation::notice(
|
||||
'3.1',
|
||||
'ScheduledTask, QuarterHourlyTask, HourlyTask, DailyTask, MonthlyTask, WeeklyTask and ' .
|
||||
'YearlyTask are deprecated, please extend from BuildTask or CliController, ' .
|
||||
'and invoke them in self-defined frequencies through Unix cronjobs etc.'
|
||||
);
|
||||
|
||||
parent::init();
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,8 @@
|
||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||
* they need to be triggered by an external automation tool like unix cron.
|
||||
* See {@link ScheduledTask} for details.
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @package framework
|
||||
* @subpackage cron
|
||||
|
@ -5,6 +5,8 @@
|
||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||
* they need to be triggered by an external automation tool like unix cron.
|
||||
* See {@link ScheduledTask} for details.
|
||||
*
|
||||
* @deprecated 3.1
|
||||
*
|
||||
* @package framework
|
||||
* @subpackage cron
|
||||
|
Loading…
Reference in New Issue
Block a user