数据可视化上线
This commit is contained in:
@@ -17,10 +17,9 @@ class ElasticConfig(AppConfig):
|
||||
return
|
||||
|
||||
# 延迟导入,避免循环导入或过早加载
|
||||
from .es_connect import create_index_with_mapping, get_type_list
|
||||
from .es_connect import create_index_with_mapping, start_daily_analytics_scheduler
|
||||
try:
|
||||
create_index_with_mapping()
|
||||
types = get_type_list()
|
||||
print(f"🔎 启动时 type_list: {types}")
|
||||
start_daily_analytics_scheduler()
|
||||
except Exception as e:
|
||||
print(f"❌ ES 初始化失败: {e}")
|
||||
Reference in New Issue
Block a user