Skip to content

Commit 7583138

Browse files
committed
timeouts
1 parent 385e515 commit 7583138

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

labapp/app/app.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def lb_aws():
230230
if not ns:
231231
raise LabException("Ephemeral NS not set")
232232
url = f"https://{ns}.{app.config['base_url']}"
233-
data = cloudapp_fetch(s, url, 7, 'env', 'AWS', None)
233+
data = cloudapp_fetch(s, url, 7, 'env', 'AWS')
234234
return jsonify(status='success', data=data)
235235
except (LabException, requests.RequestException, ValueError) as e:
236236
return jsonify(status='fail', error=str(e))
@@ -245,7 +245,7 @@ def lb_azure():
245245
if not ns:
246246
raise LabException("Ephemeral NS not set")
247247
url = f"https://{ns}.{app.config['base_url']}"
248-
data = cloudapp_fetch(s, url, 5, 'env', 'Azure')
248+
data = cloudapp_fetch(s, url, 7, 'env', 'Azure')
249249
return jsonify(status='success', data=data)
250250
except (LabException, requests.RequestException, ValueError) as e:
251251
return jsonify(status='fail', error=str(e))
@@ -262,8 +262,8 @@ def route1():
262262
base_url = app.config['base_url']
263263
aws_url = f"https://{ns}.{base_url}/aws/raw"
264264
azure_url = f"https://{ns}.{base_url}/azure/raw"
265-
aws_data = cloudapp_fetch(s, aws_url, 5, 'env', 'AWS')
266-
azure_data = cloudapp_fetch(s, azure_url, 5, 'env', 'Azure')
265+
aws_data = cloudapp_fetch(s, aws_url, 7, 'env', 'AWS')
266+
azure_data = cloudapp_fetch(s, azure_url, 7, 'env', 'Azure')
267267
data = {
268268
"aws": aws_data,
269269
"azure": azure_data
@@ -285,9 +285,9 @@ def route2():
285285
aws_url = f"https://{ns}.{base_url}/"
286286
azure_url = f"https://{ns}.{base_url}/"
287287
s.headers["X-MCN-lab"] = "aws"
288-
aws_data = cloudapp_fetch(s, aws_url, 5, 'env', 'AWS')
288+
aws_data = cloudapp_fetch(s, aws_url, 7, 'env', 'AWS')
289289
s.headers["X-MCN-lab"] = "azure"
290-
azure_data = cloudapp_fetch(s, azure_url, 5, 'env', 'Azure', headers={"X-MCN-lab": "azure"})
290+
azure_data = cloudapp_fetch(s, azure_url, 7, 'env', 'Azure', headers={"X-MCN-lab": "azure"})
291291
data = {
292292
"aws": aws_data,
293293
"azure": azure_data

0 commit comments

Comments
 (0)