Skip to content

Commit

Permalink
Set parallelism to one for sandbox generation
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 21, 2023
1 parent 8b48f8d commit 8be2ce8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/sandbox/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import { allTemplates as sandboxTemplates } from '../../code/lib/cli/src/sandbox
import storybookVersions from '../../code/lib/cli/src/versions';
import { JsPackageManagerFactory } from '../../code/lib/cli/src/js-package-manager/JsPackageManagerFactory';

import { maxConcurrentTasks } from '../utils/maxConcurrentTasks';

// eslint-disable-next-line import/no-cycle
import { localizeYarnConfigFiles, setupYarn } from './utils/yarn';
import type { GeneratorConfig } from './utils/types';
Expand Down Expand Up @@ -139,9 +137,9 @@ const runGenerators = async (
console.log('Debug mode enabled. Verbose logs will be printed to the console.');
}

console.log(`🤹‍♂️ Generating sandboxes with a concurrency of ${maxConcurrentTasks}`);
console.log(`🤹‍♂️ Generating sandboxes with a concurrency of ${1}`);

const limit = pLimit(maxConcurrentTasks);
const limit = pLimit(1);

await Promise.all(
generators.map(({ dirName, name, script, expected }) =>
Expand Down

0 comments on commit 8be2ce8

Please sign in to comment.