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