From: Antoine Musso Date: Wed, 27 Jun 2012 17:01:11 +0000 (+0200) Subject: debug start of jobs X-Git-Tag: 1.31.0-rc.0~23220^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=a652d999fbb78aac9a01226b77f55cbea3f12cbe;p=lhc%2Fweb%2Fwiklou.git debug start of jobs We log a message whenever a job complete, regardless of its completion status. In some case, we might have very long running job that would kill a jobrunner box, yet we would have no way to find out which jobs were running on it. This patch add a log entry before a job run is started. This will double the traffic related to runJobs logs. Change-Id: I20cb2cb69c7d125f7f531f3dadbac165b64a6998 --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index a75696a771..9c1ad29a9a 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -79,6 +79,7 @@ class RunJobs extends Maintenance { wfWaitForSlaves(); $t = microtime( true ); $offset = $job->id; + $this->runJobsLog( $job->toString() . " STARTING" ); $status = $job->run(); $t = microtime( true ) - $t; $timeMs = intval( $t * 1000 );