feat: add inspection task lifecycle controls
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
} from './cadHeatmapCompute.js';
|
||||
import { pickCadFileForHeatmap } from './cadFilePick.js';
|
||||
import { sampleTaskPointclouds } from './sampleTaskPointclouds.js';
|
||||
import { registerLegacyAnalysisChild } from './analysisJobControl.js';
|
||||
|
||||
const DATA_DIR = process.env.DATA_DIR || '/data';
|
||||
const TASKS_DIR = path.join(DATA_DIR, 'tasks');
|
||||
@@ -49,6 +50,7 @@ export function enqueueSmoothHeatmapJob(resultId: number, taskId: number, totalP
|
||||
stdio: ['ignore', 'inherit', 'inherit', 'ipc'],
|
||||
execArgv: isProd ? [] : ['--import', 'tsx'],
|
||||
});
|
||||
registerLegacyAnalysisChild(resultId, taskId, 'smooth_heatmap', child);
|
||||
child.on('error', (err) => {
|
||||
console.error('[SmoothHeatmapJob] fork 失败:', err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user