|
@@ -631,7 +631,7 @@ public class SubSyncBusinessImpl implements ISubSyncBusiness {
|
|
|
//导入也会影响,所以获取锁等待一分钟
|
|
|
RLock lock = redissonClient.getLock(AddSyncContance.ORG_SYNC_KEY);
|
|
|
try {
|
|
|
- boolean tryLock = lock.tryLock(1, 20, TimeUnit.MINUTES);
|
|
|
+ boolean tryLock = lock.tryLock(10, 20 * 60, TimeUnit.SECONDS);
|
|
|
if (!tryLock) {
|
|
|
log.info("try lock fail");
|
|
|
return ;
|
|
@@ -1010,7 +1010,7 @@ public class SubSyncBusinessImpl implements ISubSyncBusiness {
|
|
|
try {
|
|
|
UserContextUtils.setCurrentUser(currentUser);
|
|
|
|
|
|
- boolean tryLock = lock.tryLock(1, 5, TimeUnit.MINUTES);
|
|
|
+ boolean tryLock = lock.tryLock(10, 5 * 60, TimeUnit.SECONDS);
|
|
|
if (!tryLock) {
|
|
|
log.info("try lock fail");
|
|
|
return ;
|