fixed pymongo connection issue

This commit is contained in:
Marvin Zhang
2019-05-09 19:44:47 +08:00
parent c2771c743a
commit 4cdacf23e2

View File

@@ -9,7 +9,7 @@ from db.manager import db_manager
class Scheduler(object):
mongo = MongoClient(host=MONGO_HOST, port=MONGO_PORT)
mongo = MongoClient(host=MONGO_HOST, port=MONGO_PORT, connect=False)
task_col = 'apscheduler_jobs'
# scheduler jobstore