Skip to content

Commit 9d16240

Browse files
committed
fix to allow use threads and native in parallel
1 parent 6d8e01d commit 9d16240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class DataSchemaCompiler {
237237
const transpilationNativeThreadsCount = getThreadsCount();
238238
const { compilerId } = this;
239239

240-
if (!transpilationNative && transpilationWorkerThreads) {
240+
if (transpilationWorkerThreads) {
241241
const wc = getEnv('transpilationWorkerThreadsCount');
242242
this.workerPool = workerpool.pool(
243243
path.join(__dirname, 'transpilers/transpiler_worker'),
@@ -283,7 +283,7 @@ export class DataSchemaCompiler {
283283
await this.transpileJsFile(dummyFile, errorsReport, { cubeNames, cubeSymbols, transpilerNames, contextSymbols: CONTEXT_SYMBOLS, compilerId, stage });
284284

285285
const nonJsFilesTasks = toCompile.filter(file => !file.fileName.endsWith('.js') && !file.convertedToJs)
286-
.map(f => this.transpileFile(f, errorsReport, { transpilerNames, compilerId }));
286+
.map(f => this.transpileFile(f, errorsReport, { cubeNames, cubeSymbols, transpilerNames, compilerId }));
287287

288288
const jsFiles = toCompile.filter(file => file.fileName.endsWith('.js') || file.convertedToJs);
289289
let JsFilesTasks = [];

0 commit comments

Comments
 (0)