feat(接口测试): 添加执行过程动态设置资源池线程数

This commit is contained in:
fit2-zhao 2024-02-20 19:11:05 +08:00 committed by Craftsman
parent 15ff97a4cb
commit fb4c715f98
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ public class TaskRequestDTO implements Serializable {
private String kafkaConfig;
private String minioConfig;
private String queueId;
private int poolSize;
/**
* 是否需要实时接收单个步骤的结果
*/

View File

@ -174,6 +174,7 @@ public class ApiExecuteService {
// 如果资源池配置了当前站点则使用资源池的
taskRequest.setMsUrl(testResourcePoolDTO.getServerUrl());
}
taskRequest.setPoolSize(testResourceNodeDTO.getConcurrentNumber());
// 将测试脚本缓存到 redis
String scriptRedisKey = getScriptRedisKey(reportId, testId);