From ff3ea2d1209bf2de0bec7fac157cc3af74bd1a07 Mon Sep 17 00:00:00 2001 From: Stepan Strelets Date: Wed, 5 Apr 2017 16:21:57 +0300 Subject: [PATCH] Fixes (store variable name; work flow when build not exist) --- src/PHPCensor/Worker/BuildWorker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PHPCensor/Worker/BuildWorker.php b/src/PHPCensor/Worker/BuildWorker.php index 3b492513..10550bca 100644 --- a/src/PHPCensor/Worker/BuildWorker.php +++ b/src/PHPCensor/Worker/BuildWorker.php @@ -108,6 +108,7 @@ class BuildWorker } catch (\Exception $ex) { $this->logger->addWarning('Build #' . $jobData['build_id'] . ' does not exist in the database.'); $this->pheanstalk->delete($job); + continue; } // Logging relevant to this build should be stored @@ -130,7 +131,7 @@ class BuildWorker $build->setStatus(Build::STATUS_FAILED); $build->setFinished(new \DateTime()); $build->setLog($build->getLog() . PHP_EOL . PHP_EOL . $ex->getMessage()); - $store->save($build); + $buildStore->save($build); $build->sendStatusPostback(); break; }