From a652d999fbb78aac9a01226b77f55cbea3f12cbe Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 27 Jun 2012 19:01:11 +0200 Subject: [PATCH] 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 --- maintenance/runJobs.php | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.20.1