From c1cbeb3a822b6a5b5ee644abcb547e71d98b0b81 Mon Sep 17 00:00:00 2001 From: dwieeb Date: Tue, 16 Oct 2018 15:25:58 -0500 Subject: [PATCH] chore(ci): batch screenshot uploads (#15975) --- core/scripts/screenshot/ci.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/scripts/screenshot/ci.js b/core/scripts/screenshot/ci.js index e56380cbe1..66ad475058 100644 --- a/core/scripts/screenshot/ci.js +++ b/core/scripts/screenshot/ci.js @@ -94,7 +94,15 @@ class CIScreenshotConnector extends IonicConnector { ); } - await Promise.all(uploads); + const uploadBatches = []; + + while (uploads.length > 0) { + uploadBatches.push(uploads.splice(0, 10)); + } + + for (const batch of uploadBatches) { + await Promise.all(batch); + } timespan.finish(`publishing build finished`);