From 8a1063a47c89350a95b2d6c42bfb990ef4c4a6cf Mon Sep 17 00:00:00 2001 From: Soumt Nam Date: Thu, 12 Oct 2023 21:00:37 +0900 Subject: [PATCH] chore: adjust CherryChk interval --- minya.py | 1 - modules/CherryCheck.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/minya.py b/minya.py index 7d86744..dde497b 100644 --- a/minya.py +++ b/minya.py @@ -16,7 +16,6 @@ from aiohttp import ClientWebSocketResponse from mipac.models.notification import NotificationNote from mipa.ext.commands.bot import Bot - def load_modules(): module_dir = "modules" modules = [] diff --git a/modules/CherryCheck.py b/modules/CherryCheck.py index c75f0c5..70f8669 100644 --- a/modules/CherryCheck.py +++ b/modules/CherryCheck.py @@ -3,7 +3,7 @@ from mipa.ext import tasks import aiohttp # CherryChk V1 by Rera*C -# Check's CherryPick's Docker image version and notify if there's a new version. (15 minutes interval) +# Check's CherryPick's Docker image version and notify if there's a new version. (10 minutes interval) # Version is checked with tag name, 'latest' and 'develop' tag is ignored. @@ -27,7 +27,7 @@ class CherryChk(ModuleInterface): "get_module_db" )(self.name, "last_checked_time") - @tasks.loop(seconds=(60.0 * 15)) + @tasks.loop(seconds=(60.0 * 10)) async def update_checker(self): try: # get latest version from dockerhub