Skip to content

Commit

Permalink
fix: bad concurrency config (#8653)
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Nov 25, 2022
1 parent 5afa923 commit d0bc512
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-buses-share.md
@@ -0,0 +1,5 @@
---
'@graphql-codegen/cli': patch
---

fix bad concurrency config
3 changes: 1 addition & 2 deletions packages/graphql-codegen-cli/src/codegen.ts
Expand Up @@ -383,11 +383,10 @@ export async function executeCodegen(input: CodegenContext | Types.Config): Prom
},
// It doesn't stop when one of tasks failed, to finish at least some of outputs
exitOnError: false,
concurrent: cpus().length,
};
});

return task.newListr(generateTasks);
return task.newListr(generateTasks, { concurrent: cpus().length });
},
},
],
Expand Down

0 comments on commit d0bc512

Please sign in to comment.