MediaWiki  1.33.0
JobQueueEnqueueUpdate Class Reference

Enqueue lazy-pushed jobs that have accumulated from JobQueueGroup. More...

Inheritance diagram for JobQueueEnqueueUpdate:
Collaboration diagram for JobQueueEnqueueUpdate:

Public Member Functions

 __construct ( $domain, array $jobs)
 doUpdate ()
 Perform the actual work. More...
 merge (MergeableUpdate $update)
 Merge this update with $update. More...

Private Attributes

array[] $jobsByDomain
 Map of (domain ID => IJobSpecification[]) More...

Detailed Description

Enqueue lazy-pushed jobs that have accumulated from JobQueueGroup.


Definition at line 31 of file JobQueueEnqueueUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

JobQueueEnqueueUpdate::__construct (   $domain,
array  $jobs 
string$domainDB domain ID

Definition at line 39 of file JobQueueEnqueueUpdate.php.

Member Function Documentation

◆ doUpdate()

JobQueueEnqueueUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 53 of file JobQueueEnqueueUpdate.php.

References $e, as, MWExceptionHandler\logException(), and JobQueueGroup\singleton().

◆ merge()

JobQueueEnqueueUpdate::merge ( MergeableUpdate  $update)

Merge this update with $update.

MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 43 of file JobQueueEnqueueUpdate.php.

References as.

Member Data Documentation

◆ $jobsByDomain

array [] JobQueueEnqueueUpdate::$jobsByDomain

Map of (domain ID => IJobSpecification[])

Definition at line 33 of file JobQueueEnqueueUpdate.php.

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