From 61ef03034f433d89734b86504dde26c881e06db4 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 10 Oct 2022 15:46:59 +1300 Subject: [PATCH] Validate ds processor in worker threads --- packages/node/src/indexer/project.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node/src/indexer/project.service.ts b/packages/node/src/indexer/project.service.ts index 68929c11a8..eba805934a 100644 --- a/packages/node/src/indexer/project.service.ts +++ b/packages/node/src/indexer/project.service.ts @@ -68,10 +68,10 @@ export class ProjectService { } async init(): Promise { + // Used to load assets into DS-processor, has to be done in any thread + await this.dsProcessorService.validateProjectCustomDatasources(); // Do extra work on main thread to setup stuff if (isMainThread) { - await this.dsProcessorService.validateProjectCustomDatasources(); - this._schema = await this.ensureProject(); await this.initDbSchema(); this.metadataRepo = await this.ensureMetadata();