refactor(task): move schedulers and startup/shutdown task into tasks directory
This commit is contained in:
28
app/tasks/__init__.py
Normal file
28
app/tasks/__init__.py
Normal 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",
|
||||
]
|
||||
Reference in New Issue
Block a user