aboutsummaryrefslogtreecommitdiffstats
path: root/includes/jobqueue/Job.php
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2018-05-20 14:10:20 +0200
committerTimo Tijhof <krinklemail@gmail.com>2018-05-21 20:10:09 +0100
commitf8ac2662876e8f52f6ca9a4412275a894abb0a9a (patch)
tree2c6958aae2d948e689e9ae5ce14ebf3ceff86fcf /includes/jobqueue/Job.php
parent4f8cf894f9dec10a6542ab73c65ceb2ab5bae353 (diff)
downloadmediawikicore-f8ac2662876e8f52f6ca9a4412275a894abb0a9a.tar.gz
mediawikicore-f8ac2662876e8f52f6ca9a4412275a894abb0a9a.zip
Job: Remove insert() and batchInsert(), deprecated since 1.21
Bug: T179624 Change-Id: I0d78a926c8c513fd652a424e8a51ded20e524a4a
Diffstat (limited to 'includes/jobqueue/Job.php')
-rw-r--r--includes/jobqueue/Job.php31
1 files changed, 1 insertions, 30 deletions
diff --git a/includes/jobqueue/Job.php b/includes/jobqueue/Job.php
index f9c416f3af70..b16cfa3819df 100644
--- a/includes/jobqueue/Job.php
+++ b/includes/jobqueue/Job.php
@@ -23,8 +23,7 @@
/**
* Class to both describe a background job and handle jobs.
- * The queue aspects of this class are now deprecated.
- * Using the class to push jobs onto queues is deprecated (use JobSpecification).
+ * To push jobs onto queues, use JobQueueGroup::singleton()->push();
*
* @ingroup JobQueue
*/
@@ -124,23 +123,6 @@ abstract class Job implements IJobSpecification {
}
/**
- * Batch-insert a group of jobs into the queue.
- * This will be wrapped in a transaction with a forced commit.
- *
- * This may add duplicate at insert time, but they will be
- * removed later on, when the first one is popped.
- *
- * @param Job[] $jobs Array of Job objects
- * @return bool
- * @deprecated since 1.21
- */
- public static function batchInsert( $jobs ) {
- wfDeprecated( __METHOD__, '1.21' );
- JobQueueGroup::singleton()->push( $jobs );
- return true;
- }
-
- /**
* @return string
*/
public function getType() {
@@ -347,17 +329,6 @@ abstract class Job implements IJobSpecification {
}
/**
- * Insert a single job into the queue.
- * @return bool True on success
- * @deprecated since 1.21
- */
- public function insert() {
- wfDeprecated( __METHOD__, '1.21' );
- JobQueueGroup::singleton()->push( $this );
- return true;
- }
-
- /**
* @return string
*/
public function toString() {