Merge pull request 'chore: adjust CherryChk interval' (#6) from develop into main

Reviewed-on: https://git.hawawa.tech/soumt/Minya-Bot/pulls/6
This commit is contained in:
soumt 2023-10-12 21:02:10 +09:00
commit 7e95ec1193
2 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@ from aiohttp import ClientWebSocketResponse
from mipac.models.notification import NotificationNote from mipac.models.notification import NotificationNote
from mipa.ext.commands.bot import Bot from mipa.ext.commands.bot import Bot
def load_modules(): def load_modules():
module_dir = "modules" module_dir = "modules"
modules = [] modules = []

View file

@ -3,7 +3,7 @@ from mipa.ext import tasks
import aiohttp import aiohttp
# CherryChk V1 by Rera*C # 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. # Version is checked with tag name, 'latest' and 'develop' tag is ignored.
@ -27,7 +27,7 @@ class CherryChk(ModuleInterface):
"get_module_db" "get_module_db"
)(self.name, "last_checked_time") )(self.name, "last_checked_time")
@tasks.loop(seconds=(60.0 * 15)) @tasks.loop(seconds=(60.0 * 10))
async def update_checker(self): async def update_checker(self):
try: try:
# get latest version from dockerhub # get latest version from dockerhub