diff --git a/cryptoai/monitor_endpoint.py b/cryptoai/monitor_endpoint.py index 1bed216..6093c39 100644 --- a/cryptoai/monitor_endpoint.py +++ b/cryptoai/monitor_endpoint.py @@ -27,8 +27,10 @@ def run_monitor(): for time in times: schedule.every().hour.at(time).do(technical_indicators_monitor.run, time_interval="15m") - # 1小时监控,技术指标 - schedule.every().hour.at(":00").do(technical_indicators_monitor.run, time_interval="1h") + # 每小时整点监控,技术指标 + times = ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"] + for time in times: + schedule.every().hour.at(time).do(technical_indicators_monitor.run, time_interval="1h") # 4小时监控,技术指标 times = ["00:00", "04:00", "08:00", "12:00", "16:00", "20:00"] diff --git a/docker-compose.yml b/docker-compose.yml index 993a754..9bfc8f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: cryptoai-monitor: build: . container_name: cryptoai-monitor - image: cryptoai-monitor:0.0.7 + image: cryptoai-monitor:0.0.8 restart: always command: python run_monitor.py environment: