-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry after failing data transfer #24
Comments
@wagdav I made a long overdue upgrade of lts snapshot as well as improved exception reporting. So if you wanna give that version a shot it is on the branch switch-to-lts-14 With regards to retry mechanism I would not be opposed to it. Having an optional flag If you decide to submit a PR, start of with |
This was addressed in PR #25, will be part of the next release. |
It was indeed |
@lehins Do you have an ETA when you can tag a new release? Thanks! |
So, @wagdav because of #26 we have two possible versions:
Hopefully next version will not have to make any compromises :) Despite that we use |
@lehins Thanks a lot! Recently we managed to cut down the cache sizes so we probably could live without the concurrent upload for now. Also, thanks for the constant support, cache-s3 works great for us, and I'll try to keep contributing. |
Hi @lehins!
We're using cache-s3 in a hybrid infra: we have workers in the cloud and on-premises as well. cache-s3 is working great, but sometimes uploading the .cache file to S3 fails:
The resulting cache database is only 65 MB, but it took more than an hour to finish the compilation (because we started from an empty cache). As the HTTP error fails our build, we have to start again the whole build.
To solve this issue I propose to implement a retry mechanism for the data transfer. I was looking at the retry package which could try to recover in case of an HTTPException.
I'm not sure why this exception occurs, so probably I'd start by fixing #18
What do you think? If you agree with this direction I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered: