|
@@ -220,7 +220,7 @@ public class CommSendService {
|
|
|
|
|
|
/**
|
|
|
* 连接情况 的 定时任务。
|
|
|
- * 执行频率: 2min debug:30s
|
|
|
+ * 执行频率: 3min
|
|
|
*/
|
|
|
public void scheduledConnect() {
|
|
|
l.info("scheduled####Connect 连接情况 的 定时任务");
|
|
@@ -304,15 +304,16 @@ public class CommSendService {
|
|
|
* 查找所有没有被手动禁用,并order by sim_num的模拟器列表。检查所有模拟器状态。
|
|
|
*/
|
|
|
public void checkAllSimState() {
|
|
|
- RealExamCollection ecF = realExamCollectionService.selectRealExamCollectionOpened();
|
|
|
- l.info("ecF.getSimType() = {}", ecF.getSimType());
|
|
|
- if (ecF != null) {
|
|
|
- List<Sim> list = simService.listAllEnableBySimType(ecF.getSimType());
|
|
|
- l.info("checkAllSimState list.size() = {}", list.size());
|
|
|
- list.forEach(s -> {
|
|
|
- checkOneSimState(s, false);
|
|
|
- });
|
|
|
- }
|
|
|
+ // RealExamCollection ecF = realExamCollectionService.selectRealExamCollectionOpened();
|
|
|
+ // l.info("ecF.getSimType() = {}", ecF.getSimType());
|
|
|
+ // if (ecF != null) {
|
|
|
+
|
|
|
+ // }
|
|
|
+ List<Sim> list = simService.listAllEnable(); // ecF.getSimType()
|
|
|
+ l.info("checkAllSimState list.size() = {}", list.size());
|
|
|
+ list.forEach(s -> {
|
|
|
+ checkOneSimState(s, false);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
@Async("tp-comm")
|