Ejemplo n.º 1
0
    def __init__(self, config):

        # Init basics
        RetryAlgoBase.__init__(self, config)

        self.maxRetries = 3

        self.maxRunTime = self.getAlgoParam('default', 'MaxRunTime', 24 * 3600)
        self.exitCodes  = self.getAlgoParam('default', 'OneMoreErrorCodes', [])

        # Try to get the actual number of max retries, but don't mind
        # if this is a test implementation without the full config
        try:
            self.maxRetries = self.config.ErrorHandler.maxRetries
        except:
            logging.debug("No ErrorHandler component passed to RetryManager.ProcessingAlgo - hope this is a test.")
            pass

        return
Ejemplo n.º 2
0
 def __init__ (self, config):
     RetryAlgoBase.__init__(self, config)
     self.changer = ChangeState(config)