TASK:冷启动热度推荐回退;

This commit is contained in:
shahaibo
2025-06-10 13:38:28 +08:00
parent 18c95a88b9
commit cee4f033e5
2 changed files with 43 additions and 33 deletions

View File

@@ -527,12 +527,12 @@ def update_heat_matrices():
if __name__ == "__main__":
try:
update_user_matrices()
update_heat_matrices()
# scheduler = BlockingScheduler()
# scheduler.add_job(update_user_matrices, 'cron', hour=12, timezone='Asia/Shanghai')
# logging.info("定时任务已启动每天12:00执行")
# scheduler.start()
# update_user_matrices()
# update_heat_matrices()
scheduler = BlockingScheduler()
scheduler.add_job(update_user_matrices, 'cron', hour=12, timezone='Asia/Shanghai')
logging.info("定时任务已启动每天12:00执行")
scheduler.start()
except KeyboardInterrupt:
logging.info("定时任务已停止")
except Exception as e: