Merge "Removed clearSharedCache() hack in User.php"
[lhc/web/wiklou.git] / includes / jobqueue / JobQueueRedis.php
index 1b1a193..29c8068 100644 (file)
@@ -613,6 +613,8 @@ LUA;
                        $job = Job::factory( $item['type'], $title, $item['params'] );
                        $job->metadata['uuid'] = $item['uuid'];
                        $job->metadata['timestamp'] = $item['timestamp'];
+                       // Add in attempt count for debugging at showJobs.php
+                       $job->metadata['attempts'] = $conn->hGet( $this->getQueueKey( 'h-attempts' ), $uid );
 
                        return $job;
                } catch ( RedisException $e ) {