TASK:冷启动热度推荐回退;
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user