GracefulShutdownException stops fail() from executing #4038
Unanswered
HenningerIBC
asked this question in
Bugs
Replies: 1 comment 7 replies
-
We need to check Kermit's history to understand why this was removed. If I remember correctly, this was done because of some inconsistencies. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Deployer Version
v7.5.12
Target OS
Debian 12
Which PHP version are you using?
PHP 8.2
Content of deploy.php or deploy.yaml
Steps to reproduce
When running
dep Exception
, the Exception gets handled, however when executingdep GracefulShutdownException
,HandleException
never gets called.This makes cleanup after a failed deploy near impossible.
In my case, I want to handle a deploy exception by calling deploy:unlock afterwards, so that one can try deploying again. However, since deployer v7, this no longer works. I recently upgraded from v6 to v7 and back in v6 a failed deploy did execute the fail hook just fine.
Beta Was this translation helpful? Give feedback.
All reactions