Build worker should delete jobs in its queue that are not recognised.

This commit is contained in:
Dan Cryer 2015-10-08 09:49:16 +01:00
parent 06e3235960
commit 2380d2e472

View file

@ -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;
}