Skip to content

Commit

Permalink
WaitHealthy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
a1fred committed Dec 8, 2021
1 parent 93c09a0 commit 575d5e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions carnival/contrib/steps/docker_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,17 @@ def run(self, c: Connection) -> typing.Any:


class WaitHealthy(Step):
"""
Дождаться когда heathcheck сервиса будет в состоянии healthy
"""

def __init__(self, app_dir: str, service: str, timeout_sec: int = 60, interval_sec: int = 3):
"""
:param app_dir: Директория где лежит docker-compose.yml
:param service: сервис
:param timeout_sec: таймаут в секундах
:param interval_sec: период попроса состояния в секундах
"""
self.app_dir = app_dir
self.service = service
self.timeout_sec = timeout_sec
Expand Down

0 comments on commit 575d5e1

Please sign in to comment.