Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!178
Issue
#3259814
: If a Cron update fails after it has started the stage should be destroyed
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3259814
: If a Cron update fails after it has started the stage should be destroyed
issue/automatic_updates-3259814:3259814-if-a-cron
into
8.x-2.x
Overview
28
Commits
24
Pipelines
0
Changes
1
Merged
Adam G-H
requested to merge
issue/automatic_updates-3259814:3259814-if-a-cron
into
8.x-2.x
3 years ago
Overview
28
Commits
24
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
1e474ee4
Prev
Next
Show latest version
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1e474ee4
added finally block
· 1e474ee4
Kunal Sachdev
authored
3 years ago
src/CronUpdater.php
+
4
−
3
Options
@@ -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