diff --git a/src/domain.py b/src/domain.py index 8d38cbb..7dfe461 100644 --- a/src/domain.py +++ b/src/domain.py @@ -200,8 +200,8 @@ class Domain: async def regular_scheduler(self): try: while True: - await self.run_wiki_scan(next(iter(self.wikis.values())), "regular check") await asyncio.sleep(self.calculate_sleep_time(len(self))) # To make sure that we don't spam domains with one wiki every second we calculate a sane timeout for domains with few wikis + await self.run_wiki_scan(next(iter(self.wikis.values())), "regular check") except Exception as e: if command_line_args.debug: logger.exception("Regular scheduler task for domain {} failed!".format(self.name))