mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Merge branch 'master' of https://github.com/chrisboulton/php-resque
This commit is contained in:
commit
7523f9c845
18
resque.php
18
resque.php
@ -4,15 +4,6 @@ if(empty($QUEUE)) {
|
|||||||
die("Set QUEUE env var containing the list of queues to work.\n");
|
die("Set QUEUE env var containing the list of queues to work.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
$APP_INCLUDE = getenv('APP_INCLUDE');
|
|
||||||
if($APP_INCLUDE) {
|
|
||||||
if(!file_exists($APP_INCLUDE)) {
|
|
||||||
die('APP_INCLUDE ('.$APP_INCLUDE.") does not exist.\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once $APP_INCLUDE;
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once 'lib/Resque.php';
|
require_once 'lib/Resque.php';
|
||||||
require_once 'lib/Resque/Worker.php';
|
require_once 'lib/Resque/Worker.php';
|
||||||
|
|
||||||
@ -32,6 +23,15 @@ else if(!empty($VVERBOSE)) {
|
|||||||
$logLevel = Resque_Worker::LOG_VERBOSE;
|
$logLevel = Resque_Worker::LOG_VERBOSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$APP_INCLUDE = getenv('APP_INCLUDE');
|
||||||
|
if($APP_INCLUDE) {
|
||||||
|
if(!file_exists($APP_INCLUDE)) {
|
||||||
|
die('APP_INCLUDE ('.$APP_INCLUDE.") does not exist.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once $APP_INCLUDE;
|
||||||
|
}
|
||||||
|
|
||||||
$interval = 5;
|
$interval = 5;
|
||||||
$INTERVAL = getenv('INTERVAL');
|
$INTERVAL = getenv('INTERVAL');
|
||||||
if(!empty($INTERVAL)) {
|
if(!empty($INTERVAL)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user