Skip to main content

gc_old_tasks

Function gc_old_tasks 

Source
pub fn gc_old_tasks()
Expand description

回收超过 RUNNER_CONFIG.task_ttl_secs 的历史任务。

同时清理 EXEC_TASKS(轮询兜底)与 EXEC_STREAMS(SSE 流式)里的过期条目, 避免 receiver 泄漏(前端连了 start_exec_stream 但从不连 SSE 的情况)。