From: Ori Livneh Date: Thu, 22 Oct 2015 06:34:06 +0000 (-0700) Subject: jobqueue: track real job inserts as 'inserts_actual' X-Git-Tag: 1.31.0-rc.0~9298 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=4844595adddb813329206ecaef984cacc9cda84c;p=lhc%2Fweb%2Fwiklou.git jobqueue: track real job inserts as 'inserts_actual' The `inserts` metric includes dupes. `inserts_actual` will track the rate at which the job queue is actually growing. Change-Id: Ie7c544fc8e59180a204d1d149b6a23ac48b8abab --- diff --git a/includes/jobqueue/JobQueueRedis.php b/includes/jobqueue/JobQueueRedis.php index 002fe0d586..419ed0e5af 100644 --- a/includes/jobqueue/JobQueueRedis.php +++ b/includes/jobqueue/JobQueueRedis.php @@ -224,6 +224,7 @@ class JobQueueRedis extends JobQueue { throw new RedisException( "Could not insert {$failed} {$this->type} job(s)." ); } JobQueue::incrStats( 'inserts', $this->type, count( $items ) ); + JobQueue::incrStats( 'inserts_actual', $pushed ); JobQueue::incrStats( 'dupe_inserts', $this->type, count( $items ) - $failed - $pushed ); } catch ( RedisException $e ) {