debug start of jobs
authorAntoine Musso <hashar@free.fr>
Wed, 27 Jun 2012 17:01:11 +0000 (19:01 +0200)
committerAntoine Musso <hashar@free.fr>
Wed, 27 Jun 2012 17:01:11 +0000 (19:01 +0200)
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

index a75696a..9c1ad29 100644 (file)
@@ -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 );