forked from mtusi2026/mtusi2026lab5
feat:report
This commit is contained in:
+2
-1
@@ -168,7 +168,8 @@ func handleOne(ctx context.Context, store *domain.Store, s3 *domain.S3Store,
|
||||
return
|
||||
}
|
||||
} else {
|
||||
sum, err := s3.PutBytes(ctx, finalOriginalKey, v.ContentType, v.Data)
|
||||
key := "final/" + j.AttachmentID + "/" + v.Name
|
||||
sum, err := s3.PutBytes(ctx, key, v.ContentType, v.Data)
|
||||
if err != nil {
|
||||
_, _ = store.RetryJob(ctx, j.JobID, "storage_error", maxAttempts, baseBackoff)
|
||||
_ = broker.Ack(ctx, m.ID)
|
||||
|
||||
Reference in New Issue
Block a user