Skip to content

Commit 2998ff7

Browse files
committed
More smaller chunks
1 parent 2ac37cb commit 2998ff7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

issue-bot/src/Console/DownloadCommand.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9090

9191
$this->savePlaygroundCache(new PlaygroundCache($cachedResults));
9292

93-
$chunkSize = (int) ceil(count($hashes) / 20);
94-
if ($chunkSize < 1) {
95-
throw new Exception('Chunk size less than 1');
96-
}
97-
9893
$matrix = [];
9994
foreach ([70300, 70400, 80000, 80100, 80200, 80300, 80400, 80500] as $phpVersion) {
10095
$phpVersionHashes = [];
@@ -125,7 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
125120
if (count($phpVersionHashes) === 0) {
126121
continue;
127122
}
128-
$chunkSize = (int) ceil(count($phpVersionHashes) / 18);
123+
$chunkSize = (int) ceil(count($phpVersionHashes) / 25);
129124
if ($chunkSize < 1) {
130125
throw new Exception('Chunk size less than 1');
131126
}

0 commit comments

Comments
 (0)