From a373f1f4eed4def483ad99a8a87fe80929c2319f Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 12 Jan 2024 14:29:40 +0100 Subject: [PATCH] Log batches --- node-src/lib/upload.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-src/lib/upload.ts b/node-src/lib/upload.ts index 9d9a58e57..76bc7063c 100644 --- a/node-src/lib/upload.ts +++ b/node-src/lib/upload.ts @@ -99,7 +99,9 @@ export async function uploadBuild( // The uploadBuild mutation has to run in batches to avoid hitting request/response payload limits // or running out of memory. These run sequentially to avoid too many concurrent requests. // The uploading itself still happens without batching, since it has its own concurrency limiter. - for (const batch of batches) { + for (const [index, batch] of batches.entries()) { + ctx.log.debug(`Running uploadBuild batch ${index + 1} / ${batches.length}`); + const { uploadBuild } = await ctx.client.runQuery( UploadBuildMutation, {