-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gcs): Wrap errors using
%w
to make retrying work (#9280)
We have a function `isTransientGCSErr()` here which attempts to `Unwrap()` errors which we have wrapped using `fmt.Errorf()`. This will only work if the `%w` format string has been used, otherwise no `Unwrap()` method is created. This should enable retrying on transient GCS upload errors, and avoid failures like ``` executor error: upload /tmp/argo/outputs/logs/main.log: writer close: googleapi: Error 503: We encountered an internal error. Please try again., backendError ``` Which we've been seeing. Signed-off-by: Iain Lane <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters