Rename worker file

This commit is contained in:
2011-06-18 17:45:20 +01:00
parent 5adf9170c4
commit 21bd423f02

View File

@@ -0,0 +1,28 @@
<?php
define('HBC_File', 'worker');
require_once '../private/config.php';
require_once(SihnonFramework_Lib . 'SihnonFramework/Main.class.php');
require_once 'Net/Gearman/Worker.php';
SihnonFramework_Main::registerAutoloadClasses('SihnonFramework', SihnonFramework_Lib,
'RippingCluster', SihnonFramework_Main::makeAbsolutePath('../source/lib/'));
SihnonFramework_Main::registerAutoloadClasses('Net', SihnonFramework_Main::makeAbsolutePath('../source/lib/'));
try {
set_time_limit(0);
$main = RippingCluster_Main::instance();
$smarty = $main->smarty();
$worker = new RippingCluster_Worker();
$worker->start();
} catch (RippingCluster_Exception $e) {
die("Uncaught Exception: " . $e->getMessage());
}
?>