refactoring scheduled tasks

This commit is contained in:
withchao
2024-12-19 18:53:49 +08:00
parent 1949d6c756
commit 86d58253c9
8 changed files with 94 additions and 15 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func (c *cronServer) clearUserMsg() {
ctx := mcontext.SetOperationID(c.ctx, operationID)
log.ZDebug(ctx, "clear user msg cron start")
const (
deleteCount = 200
deleteCount = 10000
deleteLimit = 100
)
var count int