From 28c0a5058572339a4549fc79556e29f870588cf4 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Tue, 23 Jul 2024 22:37:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E7=BB=84?= =?UTF-8?q?=E5=B9=B6=E8=A1=8C=E6=89=A7=E8=A1=8C=EF=BC=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E5=81=9C=E6=AD=A2=E6=97=B6=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/service/TestPlanExecuteService.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java index c2a0edce61..2a499680a2 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java @@ -505,6 +505,17 @@ public class TestPlanExecuteService { private void testPlanExecuteQueueFinish(String queueID, String queueType) { LogUtils.info("收到测试计划执行完成的信息: 队列ID[{}],队列类型[{}],下一个节点的执行工作准备中...", queueID, queueType); TestPlanExecutionQueue nextQueue = testPlanExecuteSupportService.getNextQueue(queueID, queueType); + + /* + 7-23日新增逻辑: 当查找的是测试计划组,并且测试计划组选择的执行方式是并行,在执行之后队列就会删除。此时进行停止,是无法查找到队列的。 + 之前不会进行这种查找。但是本迭代在任务中心增加了测试计划组的展示。 + 所以之前不会出现的情况, 在这个迭代可以出现了。 + 也就是说,在这样的情况下nextQueue是可能为null的 + */ + if (nextQueue == null) { + return; + } + if (StringUtils.equalsIgnoreCase(nextQueue.getRunMode(), ApiBatchRunMode.SERIAL.name())) { if (!nextQueue.isExecuteFinish()) { boolean execError = false;