https://bugzilla.wikimedia.org/show_bug.cgi?id=41656
Ariel T. Glenn <ar...@wikimedia.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ar...@wikimedia.org --- Comment #12 from Ariel T. Glenn <ar...@wikimedia.org> 2012-11-15 08:16:13 UTC --- on a chosen random jobrunner, running root@mw16:/usr/local/apache/common-local/multiversion# php MWScript.php nextJobDB.php --wiki=aawiki gives the empty string, although eg enwiki has 18313 refreshLinks2 in the table, some from Nov 5. running echo 'print_r ( $wgMemc->get( "jobqueue:dbs:v3" ) );' | php MWScript.php eval.php --wiki=aawiki gives output Array ( [refreshLinks2] => Array ( [0] => afwiki [1] => alswiki [2] => anwiki [3] => arwiki ... [createPdfThumbnailsJob] => Array ( [0] => sqwiki ) ) There's no 'pendingDBs' key in there anywhere. Here's the relevant code in nextJobDB.php: $pendingDbInfo = $wgMemc->get( $memcKey ); if ( !$pendingDbInfo || mt_rand( 0, 100 ) == 0 ) { ... (regenerate 1/100 of the time) } if ( !$pendingDbInfo || !$pendingDbInfo['pendingDBs'] ) { return; // no DBs with jobs or cache is both empty and locked } $pendingDBs = $pendingDbInfo['pendingDBs']; So that's going to return empty-handed every time. Those refs to 'pendingDBs' are the Nov 2 change I guess that we get some jobs run 1/100 of the time when we regenerate the memcache entry. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l