tart pull: retry if we get URLError (#947)

This commit is contained in:
Nikolay Edigaryev 2024-11-15 23:14:47 +01:00 committed by GitHub
parent cd0f238a67
commit b4de3bee83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class VMStorageOCI: PrunableStorage {
try await tmpVMDir.pullFromRegistry(registry: registry, manifest: manifest, concurrency: concurrency, localLayerCache: localLayerCache, deduplicate: deduplicate)
} recoverFromFailure: { error in
if error is Retryable {
if error is URLError {
print("Error: \(error.localizedDescription)")
print("Attempting to re-try...")