lib/hako/schedulers/ecs.rb in hako-0.15.1 vs lib/hako/schedulers/ecs.rb in hako-0.15.2

- old
+ new

@@ -540,9 +540,14 @@ def wait_for_ready(service) latest_event_id = find_latest_event_id(service.events) Hako.logger.debug " latest_event_id=#{latest_event_id}" loop do s = ecs_client.describe_services(cluster: service.cluster_arn, services: [service.service_arn]).services[0] + if s.nil? + Hako.logger.debug "Service #{service.service_arn} could not be described" + sleep 1 + next + end s.events.each do |e| if e.id == latest_event_id break end Hako.logger.info "#{e.created_at}: #{e.message}"