diff --git a/devops-service/commands/stack.rb b/devops-service/commands/stack.rb index a579d21..e2742e0 100644 --- a/devops-service/commands/stack.rb +++ b/devops-service/commands/stack.rb @@ -5,8 +5,8 @@ module StackCommands def sync_bootstrap_proc lambda do |out, stack, mongo| - # two tries each 4 seconds, then 5 tries each 10 seconds, then 5 tries each minute. - sleep_times = [4]*2 + [10]*5 + [60]*5 + # two tries each 4 seconds, then 5 tries each 10 seconds, then 10 tries each 30 seconds. + sleep_times = [4]*2 + [10]*5 + [30]*10 begin out << "Syncing stack '#{stack.id}'...\n" diff --git a/devops-service/lib/executors/server_executor.rb b/devops-service/lib/executors/server_executor.rb index 16cf190..af27aa5 100644 --- a/devops-service/lib/executors/server_executor.rb +++ b/devops-service/lib/executors/server_executor.rb @@ -82,6 +82,7 @@ module Devops return 0 end rescue => e + @out << e.message DevopsLogger.logger.error e.message roll_back mongo.server_delete @server.id