Skip to content

Commit

Permalink
AttachmentsUploader retry upload
Browse files Browse the repository at this point in the history
  • Loading branch information
brig committed Dec 25, 2023
1 parent ee7d417 commit 5ffbdd5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public void upload(UUID instanceId, Path workDir) throws Exception {
}

ProcessApi api = new ProcessApi(apiClient);
api.uploadProcessAttachments(instanceId, Files.newInputStream(tmp.path()));
ClientUtils.withRetry(AgentConstants.API_CALL_MAX_RETRIES, AgentConstants.API_CALL_RETRY_DELAY, () -> {
api.uploadProcessAttachments(instanceId, Files.newInputStream(tmp.path()));
return null;
});
}
}
}

0 comments on commit 5ffbdd5

Please sign in to comment.