Skip to content

Commit

Permalink
Disable workers for compiling on CircleCI (#15645)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 22, 2023
1 parent 5ec7e41 commit 03c51ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ function getFiles(glob, { include, exclude }) {

function createWorker(useWorker) {
const numWorkers = Math.ceil(Math.max(cpus().length, 1) / 2) - 1;
if (numWorkers === 0 || !useWorker) {
if (
numWorkers === 0 ||
!useWorker ||
// For some reason, on CircleCI the workers hang indefinitely.
process.env.CIRCLECI
) {
return require("./babel-worker.cjs");
}
const worker = new JestWorker(require.resolve("./babel-worker.cjs"), {
Expand Down

0 comments on commit 03c51ca

Please sign in to comment.