Fix-up for I2ac604d3c042d
authorOri Livneh <ori@wikimedia.org>
Fri, 26 Jun 2015 04:56:49 +0000 (21:56 -0700)
committerOri Livneh <ori@wikimedia.org>
Fri, 26 Jun 2015 04:56:49 +0000 (21:56 -0700)
Log time until picked up.

Change-Id: I67310aa2fdbfcb8b1fd394f490ef4885cf596b0c

includes/jobqueue/JobRunner.php

index 77c4238..3dfffae 100644 (file)
@@ -203,8 +203,8 @@ class JobRunner implements LoggerAwareInterface {
                                if ( $queuedTs ) {
                                        // Record time to run for the job type
                                        $pickupDelay = $popTime - $queuedTs;
-                                       $stats->timing( 'jobqueue.pickup_delay.all', $queuedTs );
-                                       $stats->timing( "jobqueue.pickup_delay.$jType", $queuedTs );
+                                       $stats->timing( 'jobqueue.pickup_delay.all', $pickupDelay );
+                                       $stats->timing( "jobqueue.pickup_delay.$jType", $pickupDelay );
                                }
 
                                // Mark the job as done on success or when the job cannot be retried