예제 #1
0
파일: memory.py 프로젝트: w1491955388/Elric
 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']