Merge pull request #9328 from mfo/US/reraise-error-on-archive-uploader

amelioration(archive-uploader): capture avec sentry les erreurs du swift_wrapper
This commit is contained in:
LeSim 2023-07-19 10:18:54 +00:00 committed by GitHub
commit 8fb6d00e0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,10 +81,13 @@ class ArchiveUploader
limit_to_retry = 1
begin
syscall_to_custom_uploader(blob)
rescue
rescue => e
if limit_to_retry > 0
limit_to_retry = limit_to_retry - 1
retry
else
Sentry.set_tags(procedure:)
Sentry.capture_exception(e, extra: { filename: })
end
end
end