mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
fix: 解决 redis mq 消息丢失问题
This commit is contained in:
parent
e9645d7054
commit
2d7d3f1511
@ -43,7 +43,6 @@ public class RedisPendingMessageResendJob {
|
|||||||
@Scheduled(cron = "35 * * * * ?")
|
@Scheduled(cron = "35 * * * * ?")
|
||||||
public void messageResend() {
|
public void messageResend() {
|
||||||
RLock lock = redissonClient.getLock(LOCK_KEY);
|
RLock lock = redissonClient.getLock(LOCK_KEY);
|
||||||
log.info("[messageResend][尝试获取锁]");
|
|
||||||
// 尝试加锁
|
// 尝试加锁
|
||||||
if (lock.tryLock()) {
|
if (lock.tryLock()) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user