Gone-away containers can trigger multiple different exceptions

Gone-away containers can trigger multiple different exceptions

https://dev.discourse.org/t/a-mobystash-is-burning-cpus/8679

diff --git a/lib/mobystash/container.rb b/lib/mobystash/container.rb
index 0557129..88df413 100644
--- a/lib/mobystash/container.rb
+++ b/lib/mobystash/container.rb
@@ -170,7 +170,7 @@ module Mobystash
             idempotent: false,
             response_block: chunk_parser
           )
-        rescue Docker::Error::NotFoundError
+        rescue Docker::Error::NotFoundError, Docker::Error::ServerError
           # This happens when the container terminates, but we beat the System
           # in the race and we call Docker::Container.get before the System
           # shuts us down.  Since we'll be terminated soon anyway, we may as

GitHub sha: fd513da8

1 Like