From 2332cb0d6829a421b4d1826bb1825f9df6afdd74 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 10 二月 2025 10:33:16 +0800
Subject: [PATCH] 测试 场景分析 bug
---
models/gather_model.go | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/models/gather_model.go b/models/gather_model.go
index 64aa815..59fe8a4 100644
--- a/models/gather_model.go
+++ b/models/gather_model.go
@@ -190,6 +190,11 @@
return service.SaveTaskResults(results)
}
+func (m *GatherModel) KeepAlive() error {
+ db.GetDB().Model(m.Task).Where("id = ?", m.Task.ID).Update("last_run_time", time.Now())
+ return nil
+}
+
func (m *GatherModel) Shutdown() error {
// 娓呯悊璧勬簮
fmt.Println("Shutting down GatherModel Model")
--
Gitblit v1.8.0