Skip to content

Commit

Permalink
Merge pull request #505 from menivaitsi/revert-timeout
Browse files Browse the repository at this point in the history
Revert timeout
  • Loading branch information
tmarballi committed May 3, 2016
2 parents 27e3366 + 4595c44 commit 63b2790
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/appscale_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ def upload_app(cls, options):

# Makes a call to the AppController to get all the stats and looks
# through them for the http port the app can be reached on.
sleep_time = 2 * cls.SLEEP_TIME
current_app = None
for i in range(cls.MAX_RETRIES):
try:
Expand All @@ -636,14 +635,13 @@ def upload_app(cls, options):
apps_result = json_result['apps']
current_app = apps_result[app_id]
http_port = current_app['http']
if not http_port:
continue
break
except ValueError:
pass
except KeyError:
pass
AppScaleLogger.verbose("Waiting {0} second(s) for a port to be assigned to {1}".\
format(sleep_time, app_id), options.verbose)
time.sleep(sleep_time)
time.sleep(20)
if not current_app:
raise AppScaleException("Unable to get the serving port for the application.")

Expand Down

0 comments on commit 63b2790

Please sign in to comment.