foreach ( array_chunk( $titles, $cSize ) as $titleBatch ) {
$pages = [];
foreach ( $titleBatch as $tl ) {
- $pages[$tl->getArticleId()] = [ $tl->getNamespace(), $tl->getDBKey() ];
+ $pages[$tl->getArticleID()] = [ $tl->getNamespace(), $tl->getDBkey() ];
}
$jobs[] = new $class(
$title, // maintain parent job title
'batchSize' => $realBSize,
'subranges' => array_slice( $ranges, 1 )
],
+ // Track how many times the base job divided for debugging
+ 'division' => isset( $params['division'] )
+ ? ( $params['division'] + 1 )
+ : 1
] + $extraParams
);
}