|
@@ -45,7 +45,7 @@ public class JobsStartup implements ApplicationRunner {
|
|
if (StringUtils.isNotBlank(appName)) {
|
|
if (StringUtils.isNotBlank(appName)) {
|
|
List<ServiceInstance> instances = discoveryClient.getInstances(appName);
|
|
List<ServiceInstance> instances = discoveryClient.getInstances(appName);
|
|
if (!instances.isEmpty()) {
|
|
if (!instances.isEmpty()) {
|
|
- throw new ExamCloudRuntimeException("multiple task instance is not allowed!");
|
|
|
|
|
|
+ throw new ExamCloudRuntimeException("multiple task instances!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|