mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Deprecated ScheduledTask and subclasses
Base CliController or BuildTask instead, with custom cron job intervals.
This commit is contained in:
parent
baf894d84a
commit
88867cdd23
@ -218,4 +218,7 @@ through the CMS controllers, providing a simple level of security.
|
|||||||
- `DataList#find`
|
- `DataList#find`
|
||||||
- `DataList#byIDs`
|
- `DataList#byIDs`
|
||||||
- `DataList#reverse`
|
- `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,
|
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||||
* they need to be triggered by an external automation tool like unix cron.
|
* they need to be triggered by an external automation tool like unix cron.
|
||||||
* See {@link ScheduledTask} for details.
|
* See {@link ScheduledTask} for details.
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @todo Improve documentation
|
* @todo Improve documentation
|
||||||
* @package framework
|
* @package framework
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||||
* they need to be triggered by an external automation tool like unix cron.
|
* they need to be triggered by an external automation tool like unix cron.
|
||||||
* See {@link ScheduledTask} for details.
|
* See {@link ScheduledTask} for details.
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||||
* they need to be triggered by an external automation tool like unix cron.
|
* they need to be triggered by an external automation tool like unix cron.
|
||||||
* See {@link ScheduledTask} for details.
|
* See {@link ScheduledTask} for details.
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||||
* they need to be triggered by an external automation tool like unix cron.
|
* they need to be triggered by an external automation tool like unix cron.
|
||||||
* See {@link ScheduledTask} for details.
|
* See {@link ScheduledTask} for details.
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
|
@ -50,6 +50,8 @@
|
|||||||
* # WeelkyTask (every Monday at 6:25am)
|
* # WeelkyTask (every Monday at 6:25am)
|
||||||
* 25 6 1 * * www-data /webroot/framework/cli-script.php /WeeklyTask > /var/log/weeklytask.log
|
* 25 6 1 * * www-data /webroot/framework/cli-script.php /WeeklyTask > /var/log/weeklytask.log
|
||||||
* </code>
|
* </code>
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @todo Improve documentation
|
* @todo Improve documentation
|
||||||
* @package framework
|
* @package framework
|
||||||
@ -57,4 +59,15 @@
|
|||||||
*/
|
*/
|
||||||
abstract class ScheduledTask extends CliController {
|
abstract class ScheduledTask extends CliController {
|
||||||
// this class exists as a logical extension
|
// 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,
|
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||||
* they need to be triggered by an external automation tool like unix cron.
|
* they need to be triggered by an external automation tool like unix cron.
|
||||||
* See {@link ScheduledTask} for details.
|
* See {@link ScheduledTask} for details.
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
* Please note: Subclasses of this task aren't extecuted automatically,
|
* Please note: Subclasses of this task aren't extecuted automatically,
|
||||||
* they need to be triggered by an external automation tool like unix cron.
|
* they need to be triggered by an external automation tool like unix cron.
|
||||||
* See {@link ScheduledTask} for details.
|
* See {@link ScheduledTask} for details.
|
||||||
|
*
|
||||||
|
* @deprecated 3.1
|
||||||
*
|
*
|
||||||
* @package framework
|
* @package framework
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
|
Loading…
Reference in New Issue
Block a user