コード例 #1
0
ファイル: fetch.py プロジェクト: shaded-enmity/gitfs
    def work(self):
        while True:
            fetch.wait(self.timeout)

            if shutting_down.is_set():
                log.info("Stop fetch worker")
                break

            self.fetch()
コード例 #2
0
ファイル: fetch.py プロジェクト: calind/gitfs
    def run(self):
        while True:
            fetch.wait(self.timeout)

            if shutting_down.is_set():
                log.info("Stop fetch worker")
                break

            self.fetch()
コード例 #3
0
ファイル: fetch.py プロジェクト: krodyrobi/gitfs
    def work(self):
        while True:
            timeout = self.timeout
            if idle.is_set():
                timeout = self.idle_timeout

            fetch.wait(timeout)

            if shutting_down.is_set():
                log.info("Stop fetch worker")
                break

            self.fetch()
コード例 #4
0
ファイル: fetch.py プロジェクト: rm3l/gitfs
    def work(self):
        while True:
            timeout = self.timeout
            if idle.is_set():
                timeout = self.idle_timeout

            fetch.wait(timeout)

            if shutting_down.is_set():
                log.info("Stop fetch worker")
                break

            self.fetch()
コード例 #5
0
ファイル: fetch.py プロジェクト: tuxxon/gitfs
    def work(self):
        while True:
            timeout = self.timeout
            if idle.is_set():
                timeout = self.idle_timeout

            log.debug("Wait for {}".format(timeout))
            fetch.wait(timeout)

            if shutting_down.is_set():
                log.info("Stop fetch worker")
                break

            self.fetch()
コード例 #6
0
ファイル: fetch.py プロジェクト: HWL-RobAt/gitfs
    def work(self):
        while True:
            timeout = self.timeout
            if idle.is_set():
                timeout = self.idle_timeout

            log.debug("Wait for {}".format(timeout))
            fetch.wait(timeout)

            if shutting_down.is_set():
                log.info("Stop fetch worker")
                break

            self.fetch()