Skip to content

Commit

Permalink
client: retry on connection errors when uploading files
Browse files Browse the repository at this point in the history
  • Loading branch information
abderrahim committed Jul 22, 2020
1 parent c72845b commit 031339c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ async def missing_objects(session, build_url, token, wanted):
missing.extend(data["missing"])
return missing

@retry(
wait=wait_fixed(10),
retry=retry_if_exception_type(aiohttp.ClientConnectionError)
)
async def upload_files(session, build_url, token, files):
if len(files) == 0:
return
Expand Down

0 comments on commit 031339c

Please sign in to comment.