(self)
Reload config.
Reload config.
Reload config .
def reload(self):
        "Reload config."
        # avoid double loading on startup
        if not self.cf:
            self.cf = self.load_config()
        else:
            self.cf.reload()
            self.log.info ("Config reloaded")
        self.job_name = self.cf.get("job_name")
        self.pidfile = self.cf.getfile("pidfile", '')
        self.loop_delay = self.cf.getfloat("loop_delay", self.loop_delay)
        self.exception_sleep = self.cf.getfloat("exception_sleep", 20)
        self.exception_quiet = self.cf.getlist("exception_quiet", [])
        self.exception_grace = self.cf.getfloat("exception_grace", 5*60)
        self.exception_reset = self.cf.getfloat("exception_reset", 15*60)
def reload ( self ) : # avoid double loading on startup if not self . cf : self . cf = self . load_config ( ) else : self . cf . reload ( ) self . log . info ( "Config reloaded" ) self . job_name = self . cf . get ( "job_name" ) self . pidfile = self . cf . getfile ( "pidfile" , '' ) self . loop_delay = self . cf . getfloat ( "loop_delay" , self . loop_delay ) self . exception_sleep = self . cf . getfloat ( "exception_sleep" , 20 ) self . exception_quiet = self . cf . getlist ( "exception_quiet" , [ ] ) self . exception_grace = self . cf . getfloat ( "exception_grace" , 5 * 60 ) self . exception_reset = self . cf . getfloat ( "exception_reset" , 15 * 60 )