From f77dad8f1dda382a23b9d22393e239be6c087a07 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 30 Aug 2016 13:10:03 +0200 Subject: Allow worker instances of multiple projects in parallel Change "queuePrefix" configuration in each project Resolves: #5 --- src/phinde/Queue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/phinde/Queue.php b/src/phinde/Queue.php index 98f6462..406f27e 100644 --- a/src/phinde/Queue.php +++ b/src/phinde/Queue.php @@ -15,7 +15,7 @@ class Queue { echo "Queuing for indexing: $linkUrl\n"; $this->gmclient->doBackground( - 'phinde_index', + $GLOBALS['phinde']['queuePrefix'] . 'phinde_index', serialize( array( 'url' => $linkUrl, @@ -36,7 +36,7 @@ class Queue { echo "Queuing for crawling: $linkUrl\n"; $this->gmclient->doBackground( - 'phinde_crawl', + $GLOBALS['phinde']['queuePrefix'] . 'phinde_crawl', serialize( array( 'url' => $linkUrl -- cgit v1.2.3