Skip to content

Commit b617875

Browse files
alielnesitor
authored andcommitted
fix GH-814 gradual increase in waiting time
1 parent 87df619 commit b617875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtimes/aleph-debian-12-python/init1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ async def run_executable_http(scope: dict) -> tuple[dict, dict, str, bytes | Non
396396
tries += 1
397397
headers, body = await make_request(session, scope)
398398
except aiohttp.ClientConnectorError:
399-
if tries > 10:
399+
if tries > 15:
400400
headers, body = show_loading()
401-
await asyncio.sleep(0.5)
401+
await asyncio.sleep(tries*0.05)
402402

403403
output = "" # Process stdout is not captured per request
404404
output_data = None

0 commit comments

Comments
 (0)