Missing build bugfix.
This commit is contained in:
parent
e871df80c2
commit
4e0325e887
|
@ -124,9 +124,9 @@ class BuildWorker
|
|||
Database::reset($config);
|
||||
}
|
||||
|
||||
$build = BuildFactory::getBuildById($jobData['build_id']);
|
||||
|
||||
if (empty($build)) {
|
||||
try {
|
||||
$build = BuildFactory::getBuildById($jobData['build_id']);
|
||||
} catch (\Exception $ex) {
|
||||
$this->logger->addWarning('Build #' . $jobData['build_id'] . ' does not exist in the database.');
|
||||
$pheanstalk->delete($job);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue