From 2380d2e472c4bf6317cdca4e8c57a6abc7690c01 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 8 Oct 2015 09:49:16 +0100 Subject: [PATCH] Build worker should delete jobs in its queue that are not recognised. --- PHPCI/Worker/BuildWorker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Worker/BuildWorker.php b/PHPCI/Worker/BuildWorker.php index 33bccd9e..e08fdd84 100644 --- a/PHPCI/Worker/BuildWorker.php +++ b/PHPCI/Worker/BuildWorker.php @@ -109,7 +109,7 @@ class BuildWorker if (!array_key_exists('type', $jobData) || $jobData['type'] !== 'phpci.build') { // Probably not from PHPCI. - $pheanstalk->release($job); + $pheanstalk->delete($job); continue; }