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

Function handleClamStatus

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

Source from the content-addressed store, hash-verified

113}
114
115func handleClamStatus() {
116 _ = global.DB.Model(&model.Clam{}).Where("is_executing = ?", true).Updates(map[string]interface{}{"is_executing": false}).Error
117 _ = global.DB.Model(&model.ClamRecord{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{
118 "status": constant.StatusFailed,
119 "message": constant.InterruptedMsg,
120 }).Error
121}
122
123func handleRecordStatus() {
124 _ = global.DB.Model(&model.BackupRecord{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{

Callers 1

InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected