Track the # of times remnant refreshLinks jobs divide
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 15 Mar 2016 22:46:56 +0000 (15:46 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 15 Mar 2016 22:46:56 +0000 (15:46 -0700)
Change-Id: I32ec09cf1fc6d3a14d99b30ad465fcf6912ce9e0

includes/jobqueue/utils/BacklinkJobUtils.php

index 7fb020b..a81cade 100644 (file)
@@ -137,6 +137,10 @@ class BacklinkJobUtils {
                                                '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
                        );
                }