예제 #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
예제 #2
0
파일: detach.py 프로젝트: 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
예제 #3
0
파일: suspects.py 프로젝트: audip/lunr
 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)
예제 #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)