Skip to content

Commit 3d01066

Browse files
committed
fix to allow use threads and native in parallel
1 parent c2b6b54 commit 3d01066

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
@@ -241,7 +241,7 @@ export class DataSchemaCompiler {
241241
const transpilationNativeThreadsCount = getThreadsCount();
242242
const { compilerId } = this;
243243

244-
if (!transpilationNative && transpilationWorkerThreads) {
244+
if (transpilationWorkerThreads) {
245245
const wc = getEnv('transpilationWorkerThreadsCount');
246246
this.workerPool = workerpool.pool(
247247
path.join(__dirname, 'transpilers/transpiler_worker'),
@@ -289,7 +289,7 @@ export class DataSchemaCompiler {
289289
await this.transpileJsFile(dummyFile, errorsReport, { cubeNames, cubeSymbols, transpilerNames, contextSymbols: CONTEXT_SYMBOLS, compilerId, stage });
290290

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

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

0 commit comments

Comments
 (0)