23use Wikimedia\Assert\Assert;
40 $this->jobsByDomain[$domain] = $jobs;
45 Assert::parameterType( __CLASS__, $update,
'$update' );
47 foreach ( $update->jobsByDomain as $domain => $jobs ) {
48 $this->jobsByDomain[$domain] = $this->jobsByDomain[$domain] ?? [];
49 $this->jobsByDomain[$domain] = array_merge( $this->jobsByDomain[$domain], $jobs );
54 foreach ( $this->jobsByDomain as $domain => $jobs ) {
55 $group = JobQueueGroup::singleton( $domain );
57 $group->push( $jobs );
58 }
catch ( Exception
$e ) {
60 MWExceptionHandler::logException(
$e );
Enqueue lazy-pushed jobs that have accumulated from JobQueueGroup.
array[] $jobsByDomain
Map of (domain ID => IJobSpecification[])
doUpdate()
Perform the actual work.
merge(MergeableUpdate $update)
Merge this update with $update.
__construct( $domain, array $jobs)
returning false will NOT prevent logging $e
Interface that deferrable updates should implement.
Interface that deferrable updates can implement.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))