Hot-fix for now

This commit is contained in:
Frisk 2024-08-29 22:29:31 +02:00
parent ced5afa39a
commit 62b5f56542

View file

@ -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))