feat: add inspection task lifecycle controls
This commit is contained in:
@@ -17,6 +17,7 @@ import { sampleTaskPointclouds } from './sampleTaskPointclouds.js';
|
||||
import type { SampledPoint } from './pointcloudSample.js';
|
||||
import { runStepParseMvp, stepParseCacheDir } from './stepParse.js';
|
||||
import type { StepManifest } from './stepParse.js';
|
||||
import { registerLegacyAnalysisChild } from './analysisJobControl.js';
|
||||
|
||||
const DATA_DIR = process.env.DATA_DIR || '/data';
|
||||
const TASKS_DIR = path.join(DATA_DIR, 'tasks');
|
||||
@@ -42,6 +43,7 @@ export function enqueueAssemblyInspectionJob(
|
||||
stdio: ['ignore', 'inherit', 'inherit', 'ipc'],
|
||||
execArgv: isProd ? [] : ['--import', 'tsx'],
|
||||
});
|
||||
registerLegacyAnalysisChild(resultId, taskId, 'assembly_inspection', child);
|
||||
child.on('error', (err) => console.error('[AssemblyInspection] fork 失败:', err));
|
||||
child.on('exit', (code, signal) => {
|
||||
if (code !== 0 && code != null) {
|
||||
|
||||
Reference in New Issue
Block a user