fix: 修复轮询停机连坐、实名逆转防抖及carrier_stopped原因写入缺失三个逻辑缺陷
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 9m37s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 9m37s
This commit is contained in:
@@ -420,6 +420,12 @@ func RedisPollingShardQueueKey(shardID int, taskType string) string {
|
||||
return fmt.Sprintf("polling:shard:%d:queue:%s", shardID, taskType)
|
||||
}
|
||||
|
||||
// RedisPollingRealnameReversalCountKey 实名逆转连续计数器,防止上游单次误报触发停机
|
||||
// TTL: 10分钟
|
||||
func RedisPollingRealnameReversalCountKey(cardID uint) string {
|
||||
return fmt.Sprintf("polling:card:realname:reversal:%d", cardID)
|
||||
}
|
||||
|
||||
// RedisPollingDeviceOpLockKey 设备维度停复机操作锁 Key
|
||||
// 防止设备下多张卡并发触发 EvaluateAndAct 导致重复 Gateway 调用
|
||||
// TTL 建议 30 秒(覆盖 stopDeviceCards/resumeDeviceCards 最长执行时间)
|
||||
|
||||
Reference in New Issue
Block a user