Skip to content
Snippets Groups Projects

Issue #3259814: If a Cron update fails after it has started the stage should be destroyed

Merged Issue #3259814: If a Cron update fails after it has started the stage should be destroyed
Merged Adam G-H requested to merge issue/automatic_updates-3259814:3259814-if-a-cron into 8.x-2.x
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -122,15 +122,16 @@ class CronUpdater extends Updater {
return;
}
catch (\Throwable $e) {
$this->logger->error($e->getMessage());
return;
}
finally {
// Destroy the stage if it still remains, unless the error happened during
// destroy() in which case it is not possible to destroy the stage.
if (!$this->isAvailable() && !$is_applied) {
$this->destroy();
}
$this->logger->error($e->getMessage());
return;
}
$this->logger->info(
'Drupal core has been updated from %previous_version to %update_version',
[
Loading