Add backoff for transient Windows failures (#2419)

## Summary

This may be required elsewhere, but all the traces in that issue are
related to persisting the temporary directory to our persistent cache,
so lets start there.

See: https://github.com/astral-sh/uv/issues/1491.
This commit is contained in:
Charlie Marsh 2024-03-13 10:16:26 -07:00 committed by GitHub
parent 94f94ba916
commit d9b160b405
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 77 additions and 9 deletions

View file

@ -451,6 +451,7 @@ impl<'a, Context: BuildContext + Send + Sync> DistributionDatabase<'a, Context>
let archive = self
.cache
.persist(temp_dir.into_path(), wheel_entry.path())
.await
.map_err(Error::CacheRead)?;
Ok(archive)
}
@ -532,6 +533,7 @@ impl<'a, Context: BuildContext + Send + Sync> DistributionDatabase<'a, Context>
let archive = self
.cache
.persist(temp_dir.into_path(), wheel_entry.path())
.await
.map_err(Error::CacheRead)?;
Ok(archive)
}