From: Brion Vibber Date: Fri, 23 May 2008 19:26:44 +0000 (+0000) Subject: add timestamps to runJobs output, should make it easier to track down stuck job queue... X-Git-Tag: 1.31.0-rc.0~47431 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=10f9bbb7710a9a6b7f2c995b84f5cf6cfbfdb943;p=lhc%2Fweb%2Fwiklou.git add timestamps to runJobs output, should make it easier to track down stuck job queue runners --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 48798f74f5..d610b8cc32 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -39,10 +39,10 @@ while ( $dbw->selectField( 'job', 'count(*)', $conds, 'runJobs.php' ) ) { break; wfWaitForSlaves( 5 ); - print $job->id . " " . $job->toString() . "\n"; + print wfTimestamp( TS_DB ) . " " . $job->id . " " . $job->toString() . "\n"; $offset=$job->id; if ( !$job->run() ) { - print "Error: {$job->error}\n"; + print wfTimestamp( TS_DB ) . " Error: {$job->error}\n"; } if ( $maxJobs && ++$n > $maxJobs ) { break 2;