From d0dfee6658caf3048bd45709cdbd8871bb9cd760 Mon Sep 17 00:00:00 2001 From: "MATSUMOTO, Katsuyoshi" Date: Tue, 26 Jan 2021 16:46:21 +0900 Subject: [PATCH] rescue from Seahorse::Client::NetworkingError --- lib/wrapbox/runner/ecs/task_waiter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wrapbox/runner/ecs/task_waiter.rb b/lib/wrapbox/runner/ecs/task_waiter.rb index 705a892..bace19a 100644 --- a/lib/wrapbox/runner/ecs/task_waiter.rb +++ b/lib/wrapbox/runner/ecs/task_waiter.rb @@ -101,6 +101,8 @@ def update_described_results(interval) end @cv.broadcast + rescue Seahorse::Client::NetworkingError => e + Wrapbox.logger.warn("Failed to connect to ECS #{e}") rescue Aws::ECS::Errors::ThrottlingException Wrapbox.logger.warn("Failed to describe tasks due to Aws::ECS::Errors::ThrottlingException") end