Merge "Let nextJobDB.php narrow down the type based on a set."
authorArielGlenn <ariel@wikimedia.org>
Sun, 27 Jan 2013 07:11:53 +0000 (07:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 27 Jan 2013 07:11:53 +0000 (07:11 +0000)
maintenance/Maintenance.php
maintenance/runJobs.php

index 45df0e9..a386bd8 100644 (file)
@@ -1210,7 +1210,7 @@ abstract class Maintenance {
                        $encPrompt = wfEscapeShellArg( $prompt );
                        $command = "read -er -p $encPrompt && echo \"\$REPLY\"";
                        $encCommand = wfEscapeShellArg( $command );
-                       $line = wfShellExec( "$bash -c $encCommand", $retval );
+                       $line = wfShellExec( "$bash -c $encCommand", $retval, array(), array( 'walltime' => 0 ) );
 
                        if ( $retval == 0 ) {
                                return $line;
index 8d2819d..85b0993 100644 (file)
@@ -101,7 +101,7 @@ class RunJobs extends Maintenance {
                                        break;
                                }
                                // Don't let any slaves/backups fall behind...
-                               $group->get( $type )->waitForBackups();
+                               $group->get( $job->getType() )->waitForBackups();
                        }
                } while ( $job ); // stop when there are no jobs
        }