From ced5afa39a1bf1819a17943f7f9e799366cb3a0b Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 29 Aug 2024 22:10:30 +0200 Subject: [PATCH] Moving the previous fix to other place... --- src/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain.py b/src/domain.py index b5b05ef..8d38cbb 100644 --- a/src/domain.py +++ b/src/domain.py @@ -214,7 +214,6 @@ class Domain: if wikis: await self.send_exception_to_monitoring(e, wikis) self.last_failure_report = time.time() - await asyncio.sleep(self.calculate_sleep_time(len(self))) @cache def calculate_sleep_time(self, queue_length: int): @@ -236,6 +235,7 @@ class Domain: try: while True: await self.regular_scheduler() + await asyncio.sleep(self.calculate_sleep_time(len(self))) except asyncio.exceptions.CancelledError: for wiki in self.wikis.values(): await wiki.session.close()