Unverified Commit b5c6ae6d authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #31317 from nextcloud/chore/deprecate-old-internal-job-classes

Deprecate our old, internal background job base classes
parents a6bc871c ef4c18a2
...@@ -29,6 +29,9 @@ use OCP\BackgroundJob\IJob; ...@@ -29,6 +29,9 @@ use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\IJobList; use OCP\BackgroundJob\IJobList;
use OCP\ILogger; use OCP\ILogger;
/**
* @deprecated internal class, use \OCP\BackgroundJob\Job
*/
abstract class Job implements IJob { abstract class Job implements IJob {
/** @var int */ /** @var int */
protected $id; protected $id;
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
*/ */
namespace OC\BackgroundJob\Legacy; namespace OC\BackgroundJob\Legacy;
/**
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
class QueuedJob extends \OC\BackgroundJob\QueuedJob { class QueuedJob extends \OC\BackgroundJob\QueuedJob {
public function run($argument) { public function run($argument) {
$class = $argument['klass']; $class = $argument['klass'];
......
...@@ -24,6 +24,9 @@ namespace OC\BackgroundJob\Legacy; ...@@ -24,6 +24,9 @@ namespace OC\BackgroundJob\Legacy;
use OCP\AutoloadNotAllowedException; use OCP\AutoloadNotAllowedException;
/**
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
class RegularJob extends \OC\BackgroundJob\Job { class RegularJob extends \OC\BackgroundJob\Job {
public function run($argument) { public function run($argument) {
try { try {
......
...@@ -32,6 +32,8 @@ use OCP\ILogger; ...@@ -32,6 +32,8 @@ use OCP\ILogger;
* create a background job that is to be executed once * create a background job that is to be executed once
* *
* @package OC\BackgroundJob * @package OC\BackgroundJob
*
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/ */
abstract class QueuedJob extends Job { abstract class QueuedJob extends Job {
/** /**
......
...@@ -34,6 +34,8 @@ use OCP\ILogger; ...@@ -34,6 +34,8 @@ use OCP\ILogger;
* create a background job that is to be executed at an interval * create a background job that is to be executed at an interval
* *
* @package OC\BackgroundJob * @package OC\BackgroundJob
*
* @deprecated internal class, use \OCP\BackgroundJob\TimedJob
*/ */
abstract class TimedJob extends Job { abstract class TimedJob extends Job {
protected $interval = 0; protected $interval = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment