refactor(task): move schedulers and startup/shutdown task into tasks directory

This commit is contained in:
MingxuanGame
2025-10-03 10:15:22 +00:00
parent afd5018bcd
commit fce88272b5
26 changed files with 464 additions and 480 deletions

28
app/tasks/__init__.py Normal file
View File

@@ -0,0 +1,28 @@
# ruff: noqa: F401
from __future__ import annotations
from . import (
beatmapset_update,
database_cleanup,
recalculate_banned_beatmap,
recalculate_failed_score,
)
from .cache import start_cache_tasks, stop_cache_tasks
from .calculate_all_user_rank import calculate_user_rank
from .create_banchobot import create_banchobot
from .daily_challenge import daily_challenge_job, process_daily_challenge_top
from .geoip import init_geoip
from .load_achievements import load_achievements
from .osu_rx_statistics import create_rx_statistics
__all__ = [
"calculate_user_rank",
"create_banchobot",
"create_rx_statistics",
"daily_challenge_job",
"init_geoip",
"load_achievements",
"process_daily_challenge_top",
"start_cache_tasks",
"stop_cache_tasks",
]