Commit 6bd16136 authored by 吕先亚's avatar 吕先亚

月初执行

parent 1f4ead3c
......@@ -130,8 +130,8 @@ async def startup_event():
scheduler.add_job(main.start, trigger=DateTrigger(run_date=current_time))
# await send_email()
# 开启定时任务,执行实盘
scheduler.add_job(main.start, 'cron', day_of_week='0-4', hour=10, minute=20)
scheduler.add_job(send_email, 'cron', day_of_week='0-4', hour=10, minute=25)
scheduler.add_job(main.start, 'cron', day=1, hour=10, minute=25)
scheduler.add_job(send_email, 'cron', day=1, hour=10, minute=25)
scheduler.start()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment