BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
EnqueueJob Class Reference
Inheritance diagram for EnqueueJob:
Collaboration diagram for EnqueueJob:

Public Member Functions

 __construct (Title $title, array $params)
 
 run ()
 
- Public Member Functions inherited from Job
 run ()
 
 __construct ($command, $title, $params=false)
 
 getType ()
 
 getTitle ()
 
 getParams ()
 
 getReleaseTimestamp ()
 
 getQueuedTimestamp ()
 
 getRequestId ()
 
 getReadyTimestamp ()
 
 ignoreDuplicates ()
 
 allowRetries ()
 
 workItemCount ()
 
 getDeduplicationInfo ()
 
 getRootJobParams ()
 
 hasRootJobParams ()
 
 isRootJob ()
 
 teardown ()
 
 insert ()
 
 toString ()
 
 getLastError ()
 

Static Public Member Functions

static newFromLocalJobs ($jobs)
 
static newFromJobsByWiki (array $jobsByWiki)
 
- Static Public Member Functions inherited from Job
static factory ($command, Title $title, $params=[])
 
static batchInsert ($jobs)
 
static newRootJobParams ($key)
 

Additional Inherited Members

- Public Attributes inherited from Job
 $command
 
 $params
 
 $metadata = []
 
- Protected Member Functions inherited from Job
 addTeardownCallback ($callback)
 
 setLastError ($error)
 
- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

Detailed Description

Router job that takes jobs and enqueues them to their proper queues

This can be used for several things:

  • a) Making multi-job enqueues more robust by atomically enqueueing a single job that pushes the actual jobs (with retry logic)
  • b) Masking the latency of pushing jobs to different queues/wikis
  • c) Low-latency enqueues to push jobs from warm to hot datacenters
Since
1.25

Constructor & Destructor Documentation

EnqueueJob::__construct ( Title  $title,
array  $params 
)

Callers should use the factory methods instead

Parameters
Title$title
array$paramsJob parameters

Member Function Documentation

static EnqueueJob::newFromJobsByWiki ( array  $jobsByWiki)
static
Parameters
array$jobsByWikiMap of (wiki => JobSpecification list)
Returns
EnqueueJob
static EnqueueJob::newFromLocalJobs (   $jobs)
static
Parameters
JobSpecification|JobSpecification[]$jobs
Returns
EnqueueJob

The documentation for this class was generated from the following file: