Reduced number of workers
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
e336bed2aa
commit
6f6510a5ee
|
@ -38,8 +38,8 @@ export async function optimizeImages() {
|
|||
const imagePaths = await getFilePathsInDirectory(SOURCE_DIRECTORY);
|
||||
await fse.emptyDir(DESTINATION_DIRECTORY);
|
||||
|
||||
// maximum number of workers is 8 in order to avoid running out of memory
|
||||
const numberOfWorkers = Math.min(cpus().length, 8);
|
||||
// maximum number of workers is 4 in order to avoid running out of memory
|
||||
const numberOfWorkers = Math.min(cpus().length, 4);
|
||||
const imagePool = new ImagePool(numberOfWorkers);
|
||||
|
||||
await Promise.all(
|
||||
|
|
Loading…
Reference in New Issue