This commit is contained in:
Thomas Sileo
2019-04-05 15:14:57 +02:00
parent af46e914bb
commit 6e7bfdd5c1
3 changed files with 24 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ class Instance(object):
def __init__(self, name, host_url, docker_url=None):
self.host_url = host_url
self.docker_url = docker_url or host_url
self._create_delay = 12
self._create_delay = 60
with open(
os.path.join(
os.path.dirname(os.path.abspath(__file__)),
@@ -50,6 +50,7 @@ class Instance(object):
def debug(self):
"""Returns the debug infos (number of items in the inbox/outbox."""
time.sleep(self._create_delay)
resp = requests.get(
f"{self.host_url}/api/debug",
headers={**self._auth_headers, "Accept": "application/json"},