chore: adjust CherryChk interval

This commit is contained in:
Soumt Nam 2023-10-12 21:00:37 +09:00
parent d2ee32245f
commit 8a1063a47c
No known key found for this signature in database
GPG key ID: 5F46B099DCBCA8CE
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 mipa.ext.commands.bot import Bot
def load_modules():
module_dir = "modules"
modules = []

View file

@ -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