mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
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:
parent
94f94ba916
commit
d9b160b405
7 changed files with 77 additions and 9 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue