|
|
|
@@ -9,6 +9,7 @@ import com.ruoyi.platform.service.ExperimentInsService; |
|
|
|
import com.ruoyi.platform.service.WorkflowService; |
|
|
|
import com.ruoyi.platform.utils.*; |
|
|
|
import com.ruoyi.platform.vo.LogRequestVo; |
|
|
|
import com.ruoyi.platform.vo.PodLogVo; |
|
|
|
import com.ruoyi.system.api.model.LoginUser; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
@@ -522,8 +523,8 @@ public class ExperimentInsServiceImpl implements ExperimentInsService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String getRealtimePodLogFromPod(String podName, String namespace,String container) { |
|
|
|
return K8sClientUtil.getPodLogs(podName, namespace,container, logsLines); |
|
|
|
public String getRealtimePodLogFromPod(PodLogVo podLogVo) { |
|
|
|
return K8sClientUtil.getPodLogs(podLogVo.getPodName(), podLogVo.getNamespace(),podLogVo.getContainerName(), logsLines); |
|
|
|
} |
|
|
|
|
|
|
|
private boolean isTerminatedState(ExperimentIns ins) throws IOException { |
|
|
|
|