|
|
|
@@ -272,7 +272,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService { |
|
|
|
|
|
|
|
try { |
|
|
|
// 发送POST请求到Argo工作流状态查询接口,并将请求数据转换为JSON |
|
|
|
String req = httpUtils.sendPost(argoUrl + argoWorkflowStatus, null, JsonUtils.mapToJson(res)); |
|
|
|
String req = HttpUtils.sendPost(argoUrl + argoWorkflowStatus, null, JsonUtils.mapToJson(res)); |
|
|
|
// 检查响应是否为空或无内容 |
|
|
|
if (req == null || StringUtils.isEmpty(req)) { |
|
|
|
throw new RuntimeException("工作流状态响应为空。"); |
|
|
|
@@ -366,7 +366,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService { |
|
|
|
|
|
|
|
try { |
|
|
|
// 发送POST请求到Argo工作流状态查询接口,并将请求数据转换为JSON |
|
|
|
String req = httpUtils.sendPost(argoUrl + argoWorkflowTermination, null, JsonUtils.mapToJson(res)); |
|
|
|
String req = HttpUtils.sendPost(argoUrl + argoWorkflowTermination, null, JsonUtils.mapToJson(res)); |
|
|
|
// 检查响应是否为空或无内容 |
|
|
|
if (StringUtils.isEmpty(req)) { |
|
|
|
throw new RuntimeException("终止响应内容为空。"); |
|
|
|
@@ -443,7 +443,7 @@ public class ExperimentInsServiceImpl implements ExperimentInsService { |
|
|
|
|
|
|
|
try { |
|
|
|
// 发送POST请求到Argo工作流日志查询接口,并将请求数据转换为JSON |
|
|
|
String req = httpUtils.sendPost(argoUrl + argoWorkflowLog, null, JsonUtils.mapToJson(res)); |
|
|
|
String req = HttpUtils.sendPost(argoUrl + argoWorkflowLog, null, JsonUtils.mapToJson(res)); |
|
|
|
// 检查响应是否为空或无内容 |
|
|
|
if (StringUtils.isEmpty(req)) { |
|
|
|
throw new RuntimeException("响应内容为空"); |
|
|
|
|