Loading aurbot +4 −3 Original line number Original line Diff line number Diff line Loading @@ -447,9 +447,10 @@ class Robot(): for pkgname in self._config.sections(): for pkgname in self._config.sections(): pkg = Package(pkgname, self._config[pkgname]) pkg = Package(pkgname, self._config[pkgname]) next_checks.add(pkg.check()) next_checks.add(pkg.check()) # Sleep until next check. # Time to sleep until next check, with a minimum of 1s. timeout = min(next_checks) min_next_checks = min(next_checks) debug(f"Waiting for {timeout}s") timeout = max(1, min_next_checks) debug(f"Next check is planned in {min_next_checks}s, waiting for {timeout}s") sleep(timeout) sleep(timeout) except InterruptedError: except InterruptedError: pass pass Loading Loading
aurbot +4 −3 Original line number Original line Diff line number Diff line Loading @@ -447,9 +447,10 @@ class Robot(): for pkgname in self._config.sections(): for pkgname in self._config.sections(): pkg = Package(pkgname, self._config[pkgname]) pkg = Package(pkgname, self._config[pkgname]) next_checks.add(pkg.check()) next_checks.add(pkg.check()) # Sleep until next check. # Time to sleep until next check, with a minimum of 1s. timeout = min(next_checks) min_next_checks = min(next_checks) debug(f"Waiting for {timeout}s") timeout = max(1, min_next_checks) debug(f"Next check is planned in {min_next_checks}s, waiting for {timeout}s") sleep(timeout) sleep(timeout) except InterruptedError: except InterruptedError: pass pass Loading