def __init__(self, config): super().__init__(config) self.constraints = config.get("constraints") self.max_retries = config.get("max_retries", _MAX_RETRIES) self.retry_backoff_factor = config.get("retry_backoff_factor", _RETRY_BACKOFF_FACTOR) self.newt = newt.Newt( config.get("passwd_file"), max_retries=self.max_retries, retry_backoff_factor=self.retry_backoff_factor )
def __init__(self, config): super(NerscJobInfo, self).__init__(config) self.constraints = config.get('constraints') if not isinstance(self.constraints, dict): raise RuntimeError('constraints should be a dict') self.newt = newt.Newt(config.get('passwd_file')) self.logger = logging.getLogger() self.max_retries = config.get("max_retries", _MAX_RETRIES) self.retry_timeout = config.get("retry_timeout", _RETRY_TIMEOUT)
def __init__(self, config): super().__init__(config) self.constraints = config.get('constraints') self.max_retries = config.get("max_retries", _MAX_RETRIES) self.retry_backoff_factor = config.get("retry_backoff_factor", _RETRY_BACKOFF_FACTOR) self.newt = newt.Newt( config.get('passwd_file'), num_retries=self.max_retries, retry_backoff_factor=self.retry_backoff_factor) self.logger = logging.getLogger()
def __init__(self, config): super(NerscAllocationInfo, self).__init__(config) self.constraints = config.get('constraints') if not isinstance(self.constraints, dict): raise RuntimeError('constraints should be a dict') self.raw_results = None self.pandas_frame = None self.newt = newt.Newt(config.get('passwd_file')) self.logger = logging.getLogger()
def __init__(self, config): super(NerscJobInfo, self).__init__(config) self.constraints = config.get('constraints') if not isinstance(self.constraints, dict): raise RuntimeError('constraints should be a dict') self.max_retries = config.get("max_retries", _MAX_RETRIES) self.retry_backoff_factor = config.get("retry_backoff_factor", _RETRY_BACKOFF_FACTOR) self.newt = newt.Newt(config.get('passwd_file'), num_retries=self.max_retries, retry_backoff_factor=self.retry_backoff_factor) self.logger = logging.getLogger()
def __init__(self, config): super().__init__(config) self.constraints = config.get("constraints") if not isinstance(self.constraints, dict): raise RuntimeError("constraints should be a dict") self.max_retries = config.get("max_retries", _MAX_RETRIES) self.retry_backoff_factor = config.get("retry_backoff_factor", _RETRY_BACKOFF_FACTOR) self.newt = newt.Newt(config.get("passwd_file"), max_retries=self.max_retries, retry_backoff_factor=self.retry_backoff_factor)