Exemplo n.º 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']
Exemplo n.º 2
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"]
Exemplo n.º 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']