| @@ -79,7 +79,7 @@ public class ActiveLearnInsStatusTask { | |||||
| @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | ||||
| public void executeActiveLearnStatus() { | public void executeActiveLearnStatus() { | ||||
| if (activeLearnIds.size() == 0) { | |||||
| if (activeLearnIds.isEmpty()) { | |||||
| return; | return; | ||||
| } | } | ||||
| // 存储需要更新的实验对象列表 | // 存储需要更新的实验对象列表 | ||||
| @@ -61,7 +61,7 @@ public class AutoMlInsStatusTask { | |||||
| @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | ||||
| public void executeAutoMlStatus() { | public void executeAutoMlStatus() { | ||||
| if (autoMlIds.size() == 0) { | |||||
| if (autoMlIds.isEmpty()) { | |||||
| return; | return; | ||||
| } | } | ||||
| // 存储需要更新的实验对象列表 | // 存储需要更新的实验对象列表 | ||||
| @@ -143,7 +143,7 @@ public class ExperimentInstanceStatusTask { | |||||
| @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | ||||
| public void executeExperimentStatus() throws IOException { | public void executeExperimentStatus() throws IOException { | ||||
| if (experimentIds.size() == 0) { | |||||
| if (experimentIds.isEmpty()) { | |||||
| return; | return; | ||||
| } | } | ||||
| // 存储需要更新的实验对象列表 | // 存储需要更新的实验对象列表 | ||||
| @@ -83,7 +83,7 @@ public class MLStatusTask { | |||||
| @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | ||||
| public void executeMachineLearn() { | public void executeMachineLearn() { | ||||
| if (machineLearnIds.size() == 0) { | |||||
| if (machineLearnIds.isEmpty()) { | |||||
| return; | return; | ||||
| } | } | ||||
| // 存储需要更新的实验对象列表 | // 存储需要更新的实验对象列表 | ||||
| @@ -79,7 +79,7 @@ public class RayInsStatusTask { | |||||
| @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | @Scheduled(cron = "0/10 * * * * ?") // / 每30S执行一次 | ||||
| public void executeRayStatus() { | public void executeRayStatus() { | ||||
| if (rayIds.size() == 0) { | |||||
| if (rayIds.isEmpty()) { | |||||
| return; | return; | ||||
| } | } | ||||
| // 存储需要更新的实验对象列表 | // 存储需要更新的实验对象列表 | ||||