Change-Id: Ie5b725b9d8aad9d6b1869242e82b13306b61478f
// Perform the job (logging success/failure and runtime)...
$t = microtime( true );
$this->runJobsLog( $job->toString() . " STARTING" );
- $status = $job->run();
- if( !is_bool( $status ) ) {
- wfWarn( $job->toString() . ' must return boolean and didn\'t!' );
+ $status = $job->run();
+ if ( !is_bool( $status ) ) {
+ wfWarn( $job->getType() . " job failed to return a boolean." );
+ $status = true; // sanity
}
-
if ( $status ) {
$group->ack( $job ); // done
}
+
$t = microtime( true ) - $t;
$timeMs = intval( $t * 1000 );
if ( !$status ) {