Skip to content

Commit

Permalink
added retrying and increased client timeout thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
smashyalts committed Mar 1, 2024
1 parent 7a399b1 commit fa9a9e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void onEnable() {
}
multipartUploadWithS3Client("world.zip");
Bukkit.getScheduler().runTaskLater(ChunkyDedicated.getPlugin(ChunkyDedicated.class), ()->{
getServer().shutdown();}, 18000L);
getServer().shutdown();}, 288000L);

});
}
Expand Down Expand Up @@ -124,7 +124,7 @@ public void multipartUploadWithS3Client(String filePath) {
partETags.add(uploadResult.getPartETag());
break;
} catch (Exception e) {
if (++retryCount > 3) { // Maximum of 3 retries
if (++retryCount > 10) { // Maximum of 3 retries
throw e; // If still failing after 3 retries, rethrow the exception
}
// Wait before retrying
Expand Down

0 comments on commit fa9a9e0

Please sign in to comment.