gitee.com/quant1x/engine@v1.8.4/services/task_global_reset.go (about) 1 package services 2 3 import ( 4 "gitee.com/quant1x/engine/cache" 5 "gitee.com/quant1x/engine/factors" 6 "gitee.com/quant1x/gotdx" 7 "gitee.com/quant1x/gox/logger" 8 "gitee.com/quant1x/gox/runtime" 9 ) 10 11 // 任务 - 交易日数据缓存重置 12 func jobGlobalReset() { 13 defer runtime.IgnorePanic("") 14 logger.Info("系统初始化...") 15 logger.Info("清理过期的更新状态文件...") 16 _ = cleanExpiredStateFiles() 17 logger.Info("清理过期的更新状态文件...OK") 18 gotdx.ReOpen() 19 logger.Info("重置系统缓存...") 20 factors.SwitchDate(cache.DefaultCanReadDate()) 21 logger.Info("重置系统缓存...OK") 22 23 logger.Info("系统初始化...OK") 24 }