|
@@ -80,6 +80,7 @@ public class TickScheduler {
|
|
int i = StringUtil.countSubString(execute, projectId);
|
|
int i = StringUtil.countSubString(execute, projectId);
|
|
if (i == 0) {
|
|
if (i == 0) {
|
|
LinuxUtil.execute("kubectl delete job project-" + projectId);
|
|
LinuxUtil.execute("kubectl delete job project-" + projectId);
|
|
|
|
+ log.info("TickScheduler-------checkProject 重新执行项目" + projectId);
|
|
String jobTemplateYamlPathTarget = "/opt/simulation-cloud/simulation-resource-scheduler/job-yaml/" + "project-" + projectId + ".yaml";
|
|
String jobTemplateYamlPathTarget = "/opt/simulation-cloud/simulation-resource-scheduler/job-yaml/" + "project-" + projectId + ".yaml";
|
|
LinuxUtil.execute("kubectl apply -f " + jobTemplateYamlPathTarget);
|
|
LinuxUtil.execute("kubectl apply -f " + jobTemplateYamlPathTarget);
|
|
}
|
|
}
|