diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/queue/ApiExecutionQueueService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/queue/ApiExecutionQueueService.java index 4380799eb8..606c947ac1 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/queue/ApiExecutionQueueService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/queue/ApiExecutionQueueService.java @@ -55,21 +55,6 @@ public class ApiExecutionQueueService { String queueKey = QUEUE_DETAIL_PREFIX + queueId; ListOperations listOps = stringRedisTemplate.opsForList(); String queueDetail = listOps.leftPop(queueKey); - if (StringUtils.isBlank(queueDetail)) { - // 重试3次获取 - for (int i = 0; i < 3; i++) { - queueDetail = stringRedisTemplate.opsForList().leftPop(queueKey); - if (StringUtils.isNotBlank(queueDetail)) { - break; - } - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - throw new RuntimeException(e); - } - } - } - if (StringUtils.isNotBlank(queueDetail)) { Long size = size(queueId); if (size == null || size == 0) {