This commit is contained in:
aaron 2025-06-20 11:27:55 +08:00
parent 813d93dfb9
commit 8498a2f23d
2 changed files with 7 additions and 5 deletions

View File

@ -28,13 +28,15 @@ def task_start():
# CryptoAgent().start_agent("WLDUSDT")
# return
logger.info("🚀 加密货币Agent程序已启动")
schedule.every().day.at("00:00").do(CryptoAgent().start_agent)
# logger.info("🚀 加密货币Agent程序已启动")
# schedule.every().day.at("00:00").do(CryptoAgent().start_agent)
schedule.every().day.at("08:00").do(CryptoAgent().start_agent)
schedule.every().day.at("12:00").do(CryptoAgent().start_agent)
schedule.every().day.at("16:00").do(CryptoAgent().start_agent)
# schedule.every().day.at("12:00").do(CryptoAgent().start_agent)
# schedule.every().day.at("16:00").do(CryptoAgent().start_agent)
schedule.every().day.at("20:00").do(CryptoAgent().start_agent)
# 每天00:00执行 用户积分复位
logger.info("积分复位启动")
schedule.every().day.at("00:00").do(task_run)
while True:

View File

@ -4,7 +4,7 @@ services:
cryptoai-task:
build: .
container_name: cryptoai-task
image: cryptoai:0.0.21
image: cryptoai:0.0.22
restart: always
volumes:
- ./cryptoai/data:/app/cryptoai/data