Skip to content

Commit

Permalink
时间调回3点预测;先注释掉预测
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungHector committed Oct 27, 2024
1 parent e929c38 commit 6ecbb44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/auto_sche.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"daily_preprocess_time": {
"hour": 15,
"hour": 3,
"minute": 0,
"second": 0
},
Expand Down
9 changes: 5 additions & 4 deletions src/schedular.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,16 +476,17 @@ def test_headtbeat():
# auto_maintainer.daily_model_predict()
# 每日预测任务
daily_scheduler = BackgroundScheduler()
daily_scheduler.add_job(auto_maintainer.daily_model_predict, 'cron',
hour=AUTO_SCHE_CONFIG['DAILY_PREPROCESS_TIME']['HOUR'],
minute=AUTO_SCHE_CONFIG['DAILY_PREPROCESS_TIME']['MINUTE'])
# daily_scheduler.add_job(auto_maintainer.daily_model_predict, 'cron',
# hour=AUTO_SCHE_CONFIG['DAILY_PREPROCESS_TIME']['HOUR'],
# minute=AUTO_SCHE_CONFIG['DAILY_PREPROCESS_TIME']['MINUTE'])
daily_scheduler.start()

# 蹲饼器健康情况监控
ioloop.PeriodicCallback(health_monitor.health_scan, 5000).start()

# 1027注释掉:
# 向蹲饼器发送蹲饼指令
ioloop.PeriodicCallback(fetcher_request_sender.send_request, 10000).start()
# ioloop.PeriodicCallback(fetcher_request_sender.send_request, 10000).start()

# ioloop.PeriodicCallback(send_heartbeat, 10000).start()

Expand Down

0 comments on commit 6ecbb44

Please sign in to comment.