diff options
Diffstat (limited to 'maintenance/runJobs.php')
-rw-r--r-- | maintenance/runJobs.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 0edf7ac9..6068311e 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -61,16 +61,18 @@ class RunJobs extends Maintenance { $dbw = wfGetDB( DB_MASTER ); $n = 0; $conds = ''; - if ( $type !== false ) + if ( $type !== false ) { $conds = "job_cmd = " . $dbw->addQuotes( $type ); + } while ( $dbw->selectField( 'job', 'job_id', $conds, 'runJobs.php' ) ) { $offset = 0; for ( ; ; ) { $job = !$type ? Job::pop( $offset ) : Job::pop_type( $type ); - if ( !$job ) + if ( !$job ) { break; + } wfWaitForSlaves(); $t = microtime( true ); |