Index: trunk/extensions/TimedMediaHandler/maintenance/WebVideoJobRunner.php |
— | — | @@ -33,9 +33,14 @@ |
34 | 34 | $this->threads = $this->getOption( 'threads' ) ; |
35 | 35 | } |
36 | 36 | // Check if WebVideoJobRuner is already running: |
| 37 | + $jobRunnerCount = 0; |
37 | 38 | foreach( $this->getProcessList() as $pid => $proc ){ |
38 | 39 | if( strpos( $proc['args'], 'WebVideoJobRunner.php' ) !== false ){ |
39 | | - $this->error( "WebVideoJobRunner.php is already running on this box with pid $pid" ); |
| 40 | + $jobRunnerCount++; |
| 41 | + if( $jobRunnerCount > 1){ |
| 42 | + $this->error( "WebVideoJobRunner.php is already running on this box with pid $pid" ); |
| 43 | + exit(1); |
| 44 | + } |
40 | 45 | } |
41 | 46 | } |
42 | 47 | // Main runCheckJobThreadsLoop |
Index: trunk/extensions/TimedMediaHandler/WebVideoTranscode/transcodeTable.sql |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | transcode_id INT NOT NULL AUTO_INCREMENT, |
7 | 7 | transcode_image_name VARCHAR(255) NOT NULL, |
8 | 8 | transcode_key VARCHAR(48) NOT NULL, |
9 | | - transcode_error BLOB NOT NULL, |
| 9 | + transcode_error longtext NOT NULL, |
10 | 10 | transcode_time_addjob DATETIME NULL, |
11 | 11 | transcode_time_startwork DATETIME NULL, |
12 | 12 | transcode_time_success DATETIME NULL, |