r90074 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90073‎ | r90074 | r90075 >
Date:19:27, 14 June 2011
Author:dale
Status:ok
Tags:
Comment:
r90072#c18050 opps .. forgot to update function reference to maintenance path
Modified paths:
  • /trunk/extensions/TimedMediaHandler/maintenance/WebVideoJobRunner.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TimedMediaHandler/maintenance/WebVideoJobRunner.php
@@ -47,7 +47,7 @@
4848 }
4949 }
5050 function runCheckJobThreadsLoop(){
51 - global $wgMaintenancePath, $wgTranscodeBackgroundTimeLimit;
 51+ global $IP, $wgTranscodeBackgroundTimeLimit;
5252 // Check if we have $threads number of webTranscode jobs running else sleep
5353 $runingJobsCount = 0;
5454 foreach( $this->getProcessList() as $pid => $proc ){
@@ -66,7 +66,7 @@
6767 }
6868 if( $runingJobsCount < $this->threads ){
6969 // Add one process:
70 - $cmd = "php $wgMaintenancePath/runJobs.php --type webVideoTranscode --maxjobs 1 --maxtime {$wgTranscodeBackgroundTimeLimit}";
 70+ $cmd = "php $IP/maintenance/runJobs.php --type webVideoTranscode --maxjobs 1 --maxtime {$wgTranscodeBackgroundTimeLimit}";
7171 $status = $this->runBackgroundProc( $cmd );
7272 $this->output( "$runingJobsCount existing job runners, Check for new transcode jobs: " );
7373 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90072r90068#c18046 no need for global to grab maintenance directorydale18:48, 14 June 2011

Status & tagging log