fix(watchdog): use ShutdownModel instead of StopModel (#1882)

Fixes #1760
This commit is contained in:
Ettore Di Giacinto 2024-03-23 16:19:57 +01:00 committed by GitHub
parent 49cec7fd61
commit bd25d8049c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View file

@ -155,10 +155,10 @@ func (ml *ModelLoader) ShutdownModel(modelName string) error {
ml.mu.Lock()
defer ml.mu.Unlock()
return ml.StopModel(modelName)
return ml.stopModel(modelName)
}
func (ml *ModelLoader) StopModel(modelName string) error {
func (ml *ModelLoader) stopModel(modelName string) error {
defer ml.deleteProcess(modelName)
if _, ok := ml.models[modelName]; !ok {
return fmt.Errorf("model %s not found", modelName)