From 74b1f509db85f3898eb0709e40c28922acd2314e Mon Sep 17 00:00:00 2001 From: marvzhang Date: Wed, 11 Mar 2020 07:43:32 +0800 Subject: [PATCH] code cleanup --- backend/services/task.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/services/task.go b/backend/services/task.go index f9bab5ce..55c37140 100644 --- a/backend/services/task.go +++ b/backend/services/task.go @@ -852,14 +852,6 @@ func SendNotifications(u model.User, t model.Task, s model.Spider) { } } -func UnlockLongTask(s model.Spider, n model.Node) { - if s.IsLongTask { - colName := "long-tasks" - key := fmt.Sprintf("%s:%s", s.Id.Hex(), n.Id.Hex()) - _ = database.RedisClient.HDel(colName, key) - } -} - func InitTaskExecutor() error { c := cron.New(cron.WithSeconds()) Exec = &Executor{