Skip to content

Commit

Permalink
Updated invoke timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hatRiot committed Jul 24, 2014
1 parent 159a0ad commit 4e33def
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/module/invoke_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from commands import getoutput
from log import LOG
import utility
import state


def invoke(fingerengine, fingerprint, deployer):
Expand Down Expand Up @@ -148,8 +149,8 @@ def _invoke(url):
cnt = 0
try:

# Some servers take a second or two to deploy the application; probe for 10s
while cnt < 5:
# Some servers take a second or two to deploy the application; probe for state.timeout * 2
while cnt < state.timeout:

response = utility.requests_get(url)
if response.status_code in [200, 202]:
Expand Down

0 comments on commit 4e33def

Please sign in to comment.