mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Hot-fix for now
This commit is contained in:
parent
ced5afa39a
commit
62b5f56542
|
@ -200,8 +200,8 @@ class Domain:
|
||||||
async def regular_scheduler(self):
|
async def regular_scheduler(self):
|
||||||
try:
|
try:
|
||||||
while True:
|
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 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:
|
except Exception as e:
|
||||||
if command_line_args.debug:
|
if command_line_args.debug:
|
||||||
logger.exception("Regular scheduler task for domain {} failed!".format(self.name))
|
logger.exception("Regular scheduler task for domain {} failed!".format(self.name))
|
||||||
|
|
Loading…
Reference in a new issue