提交 e8191120 编写于 作者: T tomtao 提交者: Gitee

后台调度器修改

上级 9c03ed3f
......@@ -7,7 +7,7 @@ import threading
from flask import Flask
from flask_session import Session
from flask_apscheduler import APScheduler
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.schedulers.background import BackgroundScheduler
from packageship import system_config
from packageship.application.settings import Config
from packageship.libs.log import setup_log
......@@ -55,7 +55,7 @@ def init_app(operation):
app.config.from_object(Config)
# Register a scheduled task
scheduler = APScheduler(scheduler=BlockingScheduler(timezone='UTC'))
scheduler = APScheduler(scheduler=BackgroundScheduler(timezone='Asia/Shanghai')
scheduler.init_app(app)
scheduler.start()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册