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
@ -219,3 +219,6 @@ through the CMS controllers, providing a simple level of security.
|
|||||||
- `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.
|
@ -6,6 +6,8 @@
|
|||||||
* 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
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* 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
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* 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
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* 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
|
||||||
*/
|
*/
|
||||||
|
@ -51,10 +51,23 @@
|
|||||||
* 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
|
||||||
* @subpackage cron
|
* @subpackage cron
|
||||||
*/
|
*/
|
||||||
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* 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
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* 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