|
@@ -225,6 +225,7 @@ async def request_etl(url, headers, json_data, retries=6):
|
|
for attempt in range(retries):
|
|
for attempt in range(retries):
|
|
try:
|
|
try:
|
|
async with session.post(url, headers=headers, json=json_data, timeout=120) as response:
|
|
async with session.post(url, headers=headers, json=json_data, timeout=120) as response:
|
|
|
|
+ print("请求状态码", response.status)
|
|
return await response.json()
|
|
return await response.json()
|
|
except asyncio.TimeoutError:
|
|
except asyncio.TimeoutError:
|
|
if attempt < retries - 1:
|
|
if attempt < retries - 1:
|