From f88a24e0343642421132c431b088210580869067 Mon Sep 17 00:00:00 2001 From: devezhao-mbp Date: Thu, 4 Feb 2021 00:05:22 +0800 Subject: [PATCH] LOCK_TIME=15s --- .../rebuild/core/support/distributed/DistributedJobLock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rebuild/core/support/distributed/DistributedJobLock.java b/src/main/java/com/rebuild/core/support/distributed/DistributedJobLock.java index 1194e3b54..20bafe55f 100644 --- a/src/main/java/com/rebuild/core/support/distributed/DistributedJobLock.java +++ b/src/main/java/com/rebuild/core/support/distributed/DistributedJobLock.java @@ -25,7 +25,7 @@ import redis.clients.jedis.params.SetParams; public abstract class DistributedJobLock { private static final String LOCK_KEY = "#RBJOBLOCK"; - private static final int LOCK_TIME = 2; // 2s offset + private static final int LOCK_TIME = 15; // 15s offset /** * 是否已在运行中,即并发判断(分布式环境)