WIP new Worker class and worker shell script
This commit is contained in:
19
worker/handbrake-cluster-worker.php
Normal file
19
worker/handbrake-cluster-worker.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
define('HBC_File', 'worker');
|
||||
|
||||
require_once '../config.php';
|
||||
require_once HandBrakeCluster_Lib . 'HandBrakeCluster/Main.class.php';
|
||||
|
||||
try {
|
||||
$main = HandBrakeCluster_Main::instance();
|
||||
$smarty = $main->smarty();
|
||||
|
||||
$worker = new HandBrakeCluster_Worker();
|
||||
$worker->start();
|
||||
|
||||
} catch (HandBrakeCluster_Exception $e) {
|
||||
die("Uncaught Exception: " . $e->getMessage());
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user