From: Tim Starling Date: Wed, 18 Mar 2009 02:22:47 +0000 (+0000) Subject: (bug 17620) don't run jobs twice X-Git-Tag: 1.31.0-rc.0~42460 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=d16e2299fb47c57268dd18bbea1e42cd1cff97f0;p=lhc%2Fweb%2Fwiklou.git (bug 17620) don't run jobs twice --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index e5cc6a7bd7..1340a85770 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -60,7 +60,7 @@ while ( $dbw->selectField( 'job', 'job_id', $conds, 'runJobs.php' ) ) { $status = $job->run(); $t = microtime( true ) - $t; $timeMs = intval( $t * 1000 ); - if ( !$job->run() ) { + if ( !$status ) { runJobsLog( $job->toString() . " t=$timeMs error={$job->error}" ); } else { runJobsLog( $job->toString() . " t=$timeMs good" );