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
+1 -1
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...")