43 parent::__construct(
'enqueue', $title,
$params );
54 WikiMap::getCurrentWikiDbDomain()->getId() => $jobs
65 $jobMapsByDomain = [];
66 foreach ( $jobsByDomain as $domain => $jobs ) {
67 $jobMapsByDomain[$domain] = [];
68 foreach ( $jobs as
$job ) {
70 $jobMapsByDomain[$domain][] =
$job->toSerializableArray();
72 throw new InvalidArgumentException(
"Jobs must be of type JobSpecification." );
74 $deduplicate = $deduplicate &&
$job->ignoreDuplicates();
79 Title::makeTitle(
NS_SPECIAL,
'Badtitle/' . __CLASS__ ),
98 public function run() {
99 $jobsByDomain = $this->params[
'jobsByDomain'] ?? $this->params[
'jobsByWiki'];
101 foreach ( $jobsByDomain as $domain => $jobMaps ) {
103 foreach ( $jobMaps as $jobMap ) {
106 JobQueueGroup::singleton( $domain )->push( $jobSpecs );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Router job that takes jobs and enqueues them to their proper queues.
static newFromJobsByWiki(array $jobsByWiki)
__construct(Title $title, array $params)
Callers should use the factory methods instead.
static newFromLocalJobs( $jobs)
static newFromJobsByDomain(array $jobsByDomain)
Job queue task description base code.
static newFromArray(array $map)
Class to both describe a background job and handle jobs.
array $params
Array of job parameters.
Represents a title within MediaWiki.
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))
if(count( $args)< 1) $job