summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache/cascache.py
diff options
context:
space:
mode:
authorJosh Smith <joshsmith@codethink.co.uk>2018-07-25 12:39:12 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-07-27 13:41:26 +0900
commit9b2bc78fca5701c058d397abac16e284a31c76a4 (patch)
tree862c57e155577cf8e3c1116dce5f54703b44eb4a /buildstream/_artifactcache/cascache.py
parent0a7cfcdfdd71885a404e780027893e3ab9be4b84 (diff)
downloadbuildstream-9b2bc78fca5701c058d397abac16e284a31c76a4.tar.gz
cascache.py: Update cache push/pull errors to be temporary
Further work needs to be done for the current grpc exceptions which are reraised.
Diffstat (limited to 'buildstream/_artifactcache/cascache.py')
-rw-r--r--buildstream/_artifactcache/cascache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index c1c75a26f..6f5898426 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -340,7 +340,7 @@ class CASCache(ArtifactCache):
except grpc.RpcError as e:
if e.code() != grpc.StatusCode.RESOURCE_EXHAUSTED:
- raise ArtifactError("Failed to push artifact {}: {}".format(refs, e)) from e
+ raise ArtifactError("Failed to push artifact {}: {}".format(refs, e), temporary=True) from e
return pushed