diff --git a/extensions/inference-cortex-extension/src/index.ts b/extensions/inference-cortex-extension/src/index.ts index 8236d7de4..98e2d0dd5 100644 --- a/extensions/inference-cortex-extension/src/index.ts +++ b/extensions/inference-cortex-extension/src/index.ts @@ -69,12 +69,13 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine { super.onLoad() - await this.queue.add(() => this.clean()) - this.queue.add(() => this.healthz()) - this.queue.add(() => this.setDefaultEngine(systemInfo)) + this.queue.add(() => this.clean()) + // Run the process watchdog const systemInfo = await systemInformation() - await executeOnMain(NODE, 'run', systemInfo) + this.queue.add(() => executeOnMain(NODE, 'run', systemInfo)) + this.queue.add(() => this.healthz()) + this.queue.add(() => this.setDefaultEngine(systemInfo)) this.subscribeToEvents() window.addEventListener('beforeunload', () => {