From 1031aab1927e2f99132728f17a09b54fefeccd66 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Thu, 6 Oct 2011 22:54:52 +0100 Subject: [PATCH] Update job queue to pass along custom config file via environment --- source/lib/RippingCluster/Job.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/lib/RippingCluster/Job.class.php b/source/lib/RippingCluster/Job.class.php index 8ec3a2d..7787a76 100644 --- a/source/lib/RippingCluster/Job.class.php +++ b/source/lib/RippingCluster/Job.class.php @@ -359,7 +359,12 @@ class RippingCluster_Job { } public static function runAllJobs() { - RippingCluster_BackgroundTask::run('/usr/bin/php ' . RippingCluster_Main::makeAbsolutePath('run-jobs.php')); + $env = $_ENV; + if (isset($_SERVER['RIPPING_CLUSTER_CONFIG'])) { + $env['RIPPING_CLUSTER_CONFIG'] = $_SERVER['RIPPING_CLUSTER_CONFIG']; + } + + RippingCluster_BackgroundTask::run('/usr/bin/php ' . RippingCluster_Main::makeAbsolutePath('run-jobs.php'), null, $env); } };