Skip to content

Commit

Permalink
Log batches
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Jan 12, 2024
1 parent 1e452d4 commit a373f1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-src/lib/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<UploadBuildMutationResult>(
UploadBuildMutation,
{
Expand Down

0 comments on commit a373f1f

Please sign in to comment.