️ 新增部分重試

This commit is contained in:
tdc 2024-04-15 16:35:11 +08:00
parent 8c869e62a4
commit 7c8e5e17ae

View File

@ -112,7 +112,14 @@ class Phase3:
)
async def run(self):
await self.fetch()
for _ in range(5):
try:
await self.fetch()
except httpx.ReadTimeout:
logger.error("Phase3: Timeout, retrying")
continue
finally:
break
class Phase4: