diff --git a/src/PHPCensor/Service/BuildService.php b/src/PHPCensor/Service/BuildService.php index 03ae7e0c..61c80b5a 100644 --- a/src/PHPCensor/Service/BuildService.php +++ b/src/PHPCensor/Service/BuildService.php @@ -173,10 +173,6 @@ class BuildService 'build_id' => $build->getId(), ]; - if ($config->get('using_custom_file')) { - $jobData['config'] = $config->getArray(); - } - $pheanstalk = new Pheanstalk($settings['host']); $pheanstalk->useTube($settings['name']); $pheanstalk->put( diff --git a/src/PHPCensor/Worker/BuildWorker.php b/src/PHPCensor/Worker/BuildWorker.php index 34746300..86e55038 100644 --- a/src/PHPCensor/Worker/BuildWorker.php +++ b/src/PHPCensor/Worker/BuildWorker.php @@ -2,8 +2,6 @@ namespace PHPCensor\Worker; -use b8\Config; -use b8\Database; use b8\Store\Factory; use Monolog\Logger; use Pheanstalk\Job; @@ -95,14 +93,6 @@ class BuildWorker $this->logger->addInfo('Received build #'.$jobData['build_id'].' from Beanstalkd'); - // If the job comes with config data, reset our config and database connections - // and then make sure we kill the worker afterwards: - if (!empty($jobData['config'])) { - $this->logger->addDebug('Using job-specific config.'); - $currentConfig = Config::getInstance()->getArray(); - Database::reset(); - } - try { $build = BuildFactory::getBuildById($jobData['build_id']); } catch (\Exception $ex) { @@ -156,11 +146,6 @@ class BuildWorker // destructor implicitly call flush unset($buildDbLog); - // Reset the config back to how it was prior to running this job: - if (!empty($currentConfig)) { - Database::reset(); - } - // Delete the job when we're done: if (!empty($job)) { $this->pheanstalk->delete($job);