Index: trunk/extensions/TimedMediaHandler/maintenance/WebVideoJobRunner.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | } |
49 | 49 | } |
50 | 50 | function runCheckJobThreadsLoop(){ |
51 | | - global $wgMaintenancePath, $wgTranscodeBackgroundTimeLimit; |
| 51 | + global $IP, $wgTranscodeBackgroundTimeLimit; |
52 | 52 | // Check if we have $threads number of webTranscode jobs running else sleep |
53 | 53 | $runingJobsCount = 0; |
54 | 54 | foreach( $this->getProcessList() as $pid => $proc ){ |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | } |
68 | 68 | if( $runingJobsCount < $this->threads ){ |
69 | 69 | // 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}"; |
71 | 71 | $status = $this->runBackgroundProc( $cmd ); |
72 | 72 | $this->output( "$runingJobsCount existing job runners, Check for new transcode jobs: " ); |
73 | 73 | } else { |