Skip to content

Commit 031339c

Browse files
committed
client: retry on connection errors when uploading files
1 parent c72845b commit 031339c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flat-manager-client

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ async def missing_objects(session, build_url, token, wanted):
199199
missing.extend(data["missing"])
200200
return missing
201201

202+
@retry(
203+
wait=wait_fixed(10),
204+
retry=retry_if_exception_type(aiohttp.ClientConnectionError)
205+
)
202206
async def upload_files(session, build_url, token, files):
203207
if len(files) == 0:
204208
return

0 commit comments

Comments
 (0)