Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GitHub Mirror
Nextcloud
server
Commits
b5c6ae6d
Unverified
Commit
b5c6ae6d
authored
Feb 22, 2022
by
Christoph Wurst
Committed by
GitHub
Feb 22, 2022
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
Changes
5
Hide whitespace changes
Inline
Side-by-side
lib/private/BackgroundJob/Job.php
View file @
b5c6ae6d
...
...
@@ -29,6 +29,9 @@ use OCP\BackgroundJob\IJob;
use
OCP\BackgroundJob\IJobList
;
use
OCP\ILogger
;
/**
* @deprecated internal class, use \OCP\BackgroundJob\Job
*/
abstract
class
Job
implements
IJob
{
/** @var int */
protected
$id
;
...
...
lib/private/BackgroundJob/Legacy/QueuedJob.php
View file @
b5c6ae6d
...
...
@@ -23,6 +23,9 @@
*/
namespace
OC\BackgroundJob\Legacy
;
/**
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
class
QueuedJob
extends
\
OC\BackgroundJob\QueuedJob
{
public
function
run
(
$argument
)
{
$class
=
$argument
[
'klass'
];
...
...
lib/private/BackgroundJob/Legacy/RegularJob.php
View file @
b5c6ae6d
...
...
@@ -24,6 +24,9 @@ namespace OC\BackgroundJob\Legacy;
use
OCP\AutoloadNotAllowedException
;
/**
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
class
RegularJob
extends
\
OC\BackgroundJob\Job
{
public
function
run
(
$argument
)
{
try
{
...
...
lib/private/BackgroundJob/QueuedJob.php
View file @
b5c6ae6d
...
...
@@ -32,6 +32,8 @@ use OCP\ILogger;
* create a background job that is to be executed once
*
* @package OC\BackgroundJob
*
* @deprecated internal class, use \OCP\BackgroundJob\QueuedJob
*/
abstract
class
QueuedJob
extends
Job
{
/**
...
...
lib/private/BackgroundJob/TimedJob.php
View file @
b5c6ae6d
...
...
@@ -34,6 +34,8 @@ use OCP\ILogger;
* create a background job that is to be executed at an interval
*
* @package OC\BackgroundJob
*
* @deprecated internal class, use \OCP\BackgroundJob\TimedJob
*/
abstract
class
TimedJob
extends
Job
{
protected
$interval
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment