Added --wiki parameter to runJobs.php call
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 31 Jan 2014 22:39:29 +0000 (14:39 -0800)
committerIAlex <codereview@emsenhuber.ch>
Fri, 7 Feb 2014 11:19:41 +0000 (11:19 +0000)
Change-Id: I8f729263397bedf1c293b14704798e7a4ec60581

includes/Wiki.php

index 56d23b1..99857d9 100644 (file)
@@ -640,7 +640,8 @@ class MediaWiki {
                        // Start a background process to run some of the jobs
                        wfProfileIn( __METHOD__ . '-exec' );
                        $retVal = 1;
-                       $cmd = wfShellWikiCmd( "$IP/maintenance/runJobs.php", array( '--maxjobs', $n ) );
+                       $cmd = wfShellWikiCmd( "$IP/maintenance/runJobs.php",
+                               array( '--wiki', wfWikiID(), '--maxjobs', $n ) );
                        $cmd .= " >" . wfGetNull() . " 2>&1"; // don't hang PHP on pipes
                        if ( wfIsWindows() ) {
                                // Using START makes this async and also works around a bug where using