fix(ai): allow stopping and deleting restarting model containers (#14250)

This commit is contained in:
ssongliu
2026-10-30 12:52:32 +08:00
committed by GitHub
parent ecb264f087
commit 01feaa6059
5 changed files with 58 additions and 20 deletions
+2
View File
@@ -316,6 +316,8 @@ func (t *Task) ExecuteQueued(slots chan struct{}, waitingStep string, onFinish f
func (t *Task) Execute() error {
if err := t.taskRepo.Save(context.Background(), t.Task); err != nil {
_ = t.logFile.Close()
global.RemoveTaskCancel(t.TaskID)
return err
}
return t.executeRegistered()