Skip to content

Commit

Permalink
fix: use smaller queue size for multiple deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominique-pfister committed Oct 8, 2024
1 parent 24c4862 commit cf873f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/helix-shared-storage/src/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ class Bucket {
let oks = 0;
let errors = 0;
await processQueue(chunks, async (chunk) => {
log.info(`deleting ${chunk.length} from ${bucket}`);
log.debug(`deleting ${chunk.length} from ${bucket}`);
const input = {
Bucket: bucket,
Delete: {
Expand All @@ -589,10 +589,10 @@ class Bucket {
oks += chunk.length;
} catch (e) {
// at least 1 cmd failed
log.warn(`error while deleting ${chunk.length} from ${bucket}: ${e.$metadata.httpStatusCode}`);
log.warn(`error while deleting ${chunk.length} from ${bucket}/${src}: ${e.message} (${e.$metadata.httpStatusCode})`);
errors += chunk.length;
}
}, 64);
}, 2);
log.info(`deleted ${oks} files (${errors} errors)`);
}
}
Expand Down

0 comments on commit cf873f7

Please sign in to comment.