Method: Docker::Stack::Controller#wait_for_services
- Defined in:
- lib/docker/stack/controller.rb
#wait_for_services ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/docker/stack/controller.rb', line 53 def wait_for_services Timeout.timeout(120) do warn_inline 'Waiting up to two minutes for services to become healthy.' until all_healthy? warn_inline '.' sleep 2 end warn_inline end true rescue Timeout::Error raise 'Timed out waiting for services to become healthy' end |