* The new job loop already manages timeouts and this version caused
some problems with the time-sharing approach that used --maxtime.
This killed runners too fast for some jobs and only handled CPU
time anyway, not wall clock time.
Change-Id: Id3462554b1ecba9ecdf7d49673645d54c0555cd6
++$jobsRun;
$this->runJobsLog( $job->toString() . " STARTING" );
- // Set timer to stop the job if too much CPU time is used
- set_time_limit( $maxTime ? : 0 );
// Run the job...
wfProfileIn( __METHOD__ . '-' . get_class( $job ) );
$t = microtime( true );
}
$timeMs = intval( ( microtime( true ) - $t ) * 1000 );
wfProfileOut( __METHOD__ . '-' . get_class( $job ) );
- // Disable the timer
- set_time_limit( 0 );
// Mark the job as done on success or when the job cannot be retried
if ( $status !== false || !$job->allowRetries() ) {