diff --git a/performance-test/backend/src/main/java/io/metersphere/controller/JmeterFileController.java b/performance-test/backend/src/main/java/io/metersphere/controller/JmeterFileController.java index c0e3654a6f..6cbf2259a5 100644 --- a/performance-test/backend/src/main/java/io/metersphere/controller/JmeterFileController.java +++ b/performance-test/backend/src/main/java/io/metersphere/controller/JmeterFileController.java @@ -36,7 +36,7 @@ public class JmeterFileController { try { // 保存当前节点状态到redis String reportIdKey = "jmeter_ready:" + reportId; - stringRedisTemplate.opsForHash().put(reportIdKey, resourceIndex, 1); + stringRedisTemplate.opsForHash().put(reportIdKey, reportId + "_" + resourceIndex, "1"); // 设置30分钟过期 stringRedisTemplate.expire(reportIdKey, 30 * 60, TimeUnit.SECONDS); // 返回当前已经准备好的节点数量