Skip to content

Commit

Permalink
Fix _wait_for_service function's timeout
Browse files Browse the repository at this point in the history
The function returns after the first failure.
It should return after the timeout.

OpenRoberta#3
  • Loading branch information
gregory.vimont committed Nov 21, 2020
1 parent aeccc49 commit 57a2172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oraclient-choreographe-app-v5/app/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _wait_for_service(self, service_name, max_delay_in_seconds=60):
return True
except RuntimeError:
time.sleep(1.0)
return
return
# Failed, give up

def on_start(self):
Expand Down
2 changes: 1 addition & 1 deletion oraclient-choreographe-app-v6/app/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _wait_for_service(self, service_name, max_delay_in_seconds=60):
return True
except RuntimeError:
time.sleep(1.0)
return
return
# Failed, give up

def on_start(self):
Expand Down

0 comments on commit 57a2172

Please sign in to comment.