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']
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"]
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']