Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit a07a5af

Browse files
committed
chore: name cortex processes
1 parent 44efcfe commit a07a5af

File tree

5 files changed

+4
-2
lines changed

5 files changed

+4
-2
lines changed

cortex-js/src/command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependenciesSpinner.succeed(
1313
);
1414

1515
process.removeAllListeners('warning');
16+
process.title = 'Cortex Command Executor';
1617

1718
async function bootstrap() {
1819
let telemetryUseCase: TelemetryUsecases | null = null;

cortex-js/src/infrastructure/commanders/serve-stop.command.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { SubCommand } from 'nest-commander';
22
import { BaseCommand } from './base.command';
33
import { CortexUsecases } from '@/usecases/cortex/cortex.usecases';
4-
import { FileManagerService } from '../services/file-manager/file-manager.service';
54

65
@SubCommand({
76
name: 'stop',

cortex-js/src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
import { getApp } from './app';
66
import chalk from 'chalk';
77

8+
process.title = 'Cortex API Server';
9+
810
async function bootstrap() {
911
const app = await getApp();
1012
// getting port from env

cortex-js/src/usecases/cortex/cortex.usecases.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ export class CortexUsecases implements BeforeApplicationShutdown {
206206
// for backward compatibility, we didn't have the apiServerHost and apiServerPort in the config file in the past
207207
const apiServerHost = configApiServerHost || defaultCortexJsHost;
208208
const apiServerPort = configApiServerPort || defaultCortexJsPort;
209-
await this.stopCortex();
210209
return fetch(CORTEX_JS_SYSTEM_URL(apiServerHost, apiServerPort), {
211210
method: 'DELETE',
212211
}).catch(() => {});

cortex-js/src/utils/cortex-cpp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as cortexCPP from 'cortex-cpp';
22

3+
process.title = 'Cortex Engine Server';
34
const port = process.env.CORTEX_CPP_PORT
45
? parseInt(process.env.CORTEX_CPP_PORT)
56
: 3929;

0 commit comments

Comments
 (0)