Put a 15 minute limit on the cache key lock in nextJobDB.php
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 9 Nov 2012 00:18:28 +0000 (16:18 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 9 Nov 2012 00:20:11 +0000 (16:20 -0800)
Change-Id: I673539d8f77bdbce61023c8113c0f8d7a3016a32

maintenance/nextJobDB.php

index 7a5ddac..875b93d 100644 (file)
@@ -48,7 +48,7 @@ class nextJobDB extends Maintenance {
                // regenerate the cache. Use any available stale cache if another
                // process is currently regenerating the pending DB information.
                if ( !$pendingDbInfo || mt_rand( 0, 100 ) == 0 ) {
-                       $lock = $wgMemc->add( 'jobqueue:dbs:v3:lock', 1 ); // lock
+                       $lock = $wgMemc->add( 'jobqueue:dbs:v3:lock', 1, 1800 ); // lock
                        if ( $lock ) {
                                $pendingDbInfo = array(
                                        'pendingDBs' => $this->getPendingDbs(),