feat: 添加左侧面板选项卡状态管理,更新流程节点数据结构

This commit is contained in:
catlog22
2026-02-06 11:38:20 +08:00
parent a9b9ec48f1
commit c8f9bc7994
4 changed files with 171 additions and 6 deletions

View File

@@ -68,15 +68,9 @@ type ActiveExecutionDto = Omit<ActiveExecution, 'output'> & { output: string };
const activeExecutions = new Map<string, ActiveExecution>();
const EXECUTION_RETENTION_MS = 5 * 60 * 1000; // 5 minutes
const CLEANUP_INTERVAL_MS = 60 * 1000; // 1 minute - periodic cleanup interval
const MAX_OUTPUT_BUFFER_LINES = 1000; // Max lines to keep in memory per execution
const MAX_ACTIVE_EXECUTIONS = 200; // Max concurrent executions in memory
// Enable periodic cleanup to prevent memory buildup
setInterval(() => {
cleanupStaleExecutions();
}, CLEANUP_INTERVAL_MS);
/**
* Cleanup stale completed executions older than retention period
* Runs periodically to prevent memory buildup