示例#1
0
 def __init__(self, context, **config):
     BaseJobStore.__init__(self, context)
     self.job_info = {}
     self.job_execute_records = {}
     self.job_run_time = []
     self.max_preserve_records = config['maximum_records']
示例#2
0
文件: mongodb.py 项目: ynjgit/Elric
 def __init__(self, context, **config):
     BaseJobStore.__init__(self, context)
     self.client = MongoClient(**config["server"])
     self.db = self.client["elric"]
     self.max_preserve_records = config["maximum_records"]
示例#3
0
 def __init__(self, context, **config):
     BaseJobStore.__init__(self, context)
     self.client = MongoClient(**config['server'])
     self.db = self.client['elric']
     self.max_preserve_records = config['maximum_records']