Skip to content

Commit d0bc512

Browse files
authored
fix: bad concurrency config (#8653)
1 parent 5afa923 commit d0bc512

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/short-buses-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-codegen/cli': patch
3+
---
4+
5+
fix bad concurrency config

packages/graphql-codegen-cli/src/codegen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,10 @@ export async function executeCodegen(input: CodegenContext | Types.Config): Prom
383383
},
384384
// It doesn't stop when one of tasks failed, to finish at least some of outputs
385385
exitOnError: false,
386-
concurrent: cpus().length,
387386
};
388387
});
389388

390-
return task.newListr(generateTasks);
389+
return task.newListr(generateTasks, { concurrent: cpus().length });
391390
},
392391
},
393392
],

0 commit comments

Comments
 (0)