增加对定时任务的说明

This commit is contained in:
xuguang
2022-01-21 10:50:29 +08:00
parent 373680d854
commit fdce41b451
15 changed files with 31 additions and 0 deletions

View File

@@ -156,6 +156,9 @@ public class LogicalClusterMetadataManager {
return logicalClusterDO.getClusterId();
}
/**
* 定时刷新逻辑集群元数据到缓存中
*/
@Scheduled(cron="0/30 * * * * ?")
public void flush() {
List<LogicalClusterDO> logicalClusterDOList = logicalClusterService.listAll();