Skip to content

Commit 0fcf486

Browse files
committed
add error recovery to s3 attachment uploader
1 parent 6f1b219 commit 0fcf486

3 files changed

Lines changed: 976 additions & 126 deletions

File tree

‎braintrust-sdk/src/main/java/dev/braintrust/trace/AttachmentProcessor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private static Pattern buildHeuristic() {
140140
String processAndUpload(String json) {
141141
if ((!config.autoConvertAIAttachments())
142142
|| json == null
143-
|| uploader.isShutdown()
143+
|| !uploader.isAcceptingJobs()
144144
|| !BASE64_HEURISTIC.matcher(json).find()) {
145145
return json;
146146
}

0 commit comments

Comments
 (0)