Exemplo n.º 1
0
 def __init__(self, conf, session):
     CronJob.__init__(self)
     self.interval = self.parse(
         conf.string('detach', 'interval', 'seconds=5'))
     self.span = self.parse(conf.string('detach', 'span', 'hours=1'))
     self.timeout = conf.float('orbit', 'timeout', 120)
     self._sess = session
     self.conf = conf
Exemplo n.º 2
0
Arquivo: detach.py Projeto: audip/lunr
 def __init__(self, conf, session):
     CronJob.__init__(self)
     self.interval = self.parse(conf.string('detach', 'interval',
                                            'seconds=5'))
     self.span = self.parse(conf.string('detach', 'span', 'hours=1'))
     self.timeout = conf.float('orbit', 'timeout', 120)
     self._sess = session
     self.conf = conf
Exemplo n.º 3
0
 def __init__(self, conf):
     CronJob.__init__(self)
     self.span = conf.string('suspects', 'span', 'hours=1')
     self.interval = conf.string('suspects', 'interval', 'seconds=5')
     self.timeout = conf.float('orbit', 'timeout', 120)
Exemplo n.º 4
0
 def __init__(self, conf):
     CronJob.__init__(self)
     self.span = conf.string('suspects', 'span', 'hours=1')
     self.interval = conf.string('suspects', 'interval', 'seconds=5')
     self.timeout = conf.float('orbit', 'timeout', 120)