MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / handleOllamaModelStatus

Function handleOllamaModelStatus

agent/init/hook/hook.go:130–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func handleOllamaModelStatus() {
131 _ = global.DB.Model(&model.OllamaModel{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{
132 "status": constant.StatusCanceled,
133 "message": constant.InterruptedMsg,
134 }).Error
135}
136
137func handleCronJobAlert(cronjob *model.Cronjob) {
138 pushAlert := dto.PushAlert{

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected