mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Moving the previous fix to other place...
This commit is contained in:
parent
35519a21f5
commit
ced5afa39a
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue