-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 Avoids raising exceptions when the target container of a hook is not found #8156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Avoids raising exceptions when the target container of a hook is not found #8156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an exception that occurs during container shutdown when attempting to run commands in containers that are not present or not running. The fix adds proper exception handling for Docker API errors that can occur during the shutdown process.
Key Changes
- Added exception handling for
DockerErrorin the shutdown command execution - Prevents crashes during container cleanup when containers are already stopped or removed
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8156 +/- ##
===========================================
- Coverage 88.08% 66.99% -21.10%
===========================================
Files 1894 728 -1166
Lines 73013 33690 -39323
Branches 1279 176 -1103
===========================================
- Hits 64317 22572 -41745
- Misses 8316 11060 +2744
+ Partials 380 58 -322
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx.
- Looks very much as some of the issues i reported in #8145. Just in case it helps!
yes it's the same |
|
|
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
|
This pull request has been removed from the queue for the following reason: The pull request can't be updated. You should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. |
|
@Mergifyio requeue |
✅ This pull request will be embarked automaticallyThe head sha of this pull request, 7e1c541, was never embarked in the merge queue. But don't worry, Mergify will embark it automatically for you. |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at c2de0e1 |
…K/osparc-simcore-forked into pr-osparc-fix-before-shutdown-error
|



What do these changes do?
Fixed an issue with the hooks, if the target container is not found an exception would have been raised.
Reported by @YuryHrytsuk
Related issue/s
How to test
Dev-ops