ClosePipeline 关闭管道并移除
(model string, id string)
| 151 | |
| 152 | // ClosePipeline 关闭管道并移除 |
| 153 | func (e *AsyncExecutor) ClosePipeline(model string, id string) { |
| 154 | e.mu.Lock() |
| 155 | defer e.mu.Unlock() |
| 156 | mp, ok := e.pipelines[model] |
| 157 | if !ok { |
| 158 | return |
| 159 | } |
| 160 | mp.ClosePipeline(id) |
| 161 | } |
| 162 | |
| 163 | // CloseModelPipeline 关闭当前模型所有管道 |
| 164 | func (e *AsyncExecutor) CloseModelPipeline(model string) { |
nothing calls this directly
no test coverage detected