|
@@ -51,6 +51,7 @@ from app.domains.monitor_tasks import OutsideGzhArticlesCollector
|
|
|
from app.domains.monitor_tasks import TaskProcessingMonitor
|
|
from app.domains.monitor_tasks import TaskProcessingMonitor
|
|
|
from app.domains.monitor_tasks import LimitedAccountAnalysisTask
|
|
from app.domains.monitor_tasks import LimitedAccountAnalysisTask
|
|
|
from app.domains.monitor_tasks import AdPlatformAccountsMonitorTask
|
|
from app.domains.monitor_tasks import AdPlatformAccountsMonitorTask
|
|
|
|
|
+from app.domains.monitor_tasks import RankLogMonitor
|
|
|
|
|
|
|
|
from app.jobs.task_config import TaskStatus
|
|
from app.jobs.task_config import TaskStatus
|
|
|
from app.jobs.task_utils import TaskValidationError
|
|
from app.jobs.task_utils import TaskValidationError
|
|
@@ -109,6 +110,11 @@ class TaskHandler:
|
|
|
await self.log_client.log(contents=log_data)
|
|
await self.log_client.log(contents=log_data)
|
|
|
|
|
|
|
|
# ==================== 监控类任务 ====================
|
|
# ==================== 监控类任务 ====================
|
|
|
|
|
+ @register("rank_log_monitor")
|
|
|
|
|
+ async def _rank_log_monitor_handler(self) -> int:
|
|
|
|
|
+ """迁移排序日志"""
|
|
|
|
|
+ sub_task = RankLogMonitor(self.db_client, self.log_client)
|
|
|
|
|
+ return await sub_task.deal()
|
|
|
|
|
|
|
|
@register("check_kimi_balance")
|
|
@register("check_kimi_balance")
|
|
|
async def _check_kimi_balance_handler(self) -> int:
|
|
async def _check_kimi_balance_handler(self) -> int:
|