优化部分细节

This commit is contained in:
Yun
2026-05-27 15:34:09 +08:00
parent e964f5e106
commit 03ef06fdcc
7 changed files with 524 additions and 526 deletions
+1 -1
View File
@@ -631,7 +631,7 @@ func (l *Cluster) processTask(taskId string) {
l.logger.Errorf(ctx, "doTask timer:获取锁失败:%s", taskId)
return
}
if b, err := lock.Lock(); !b {
if b, err := lock.Lock(); !b || err != nil {
l.logger.Errorf(ctx, "doTask timer:获取锁失败:%s %+v", taskId, err)
return
}