fix: agent已自动reload,管理端移除多余reload调用

This commit is contained in:
tian 2026-07-25 12:56:21 +08:00
parent 1096218c1f
commit 1c772fa28e

View File

@ -555,10 +555,6 @@ func (s *TaskService) syncResourceToDevice(task *models.Task, dev *models.Device
if code >= 400 {
return fmt.Errorf("agent error: %d %s", code, strings.TrimSpace(string(resp)))
}
// Auto-reload after syncing face_gallery
if item.ResourceType == "face_gallery" {
_, _, _ = s.agent.Do("POST", dev.IP, dev.AgentPort, "/v1/face-gallery/reload", nil)
}
}
return nil
}