示例#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)