|
@@ -7,6 +7,7 @@ from applications.utils import task_schedule_response
|
|
|
from applications.tasks.monitor_tasks import check_kimi_balance
|
|
|
from applications.tasks.monitor_tasks import GetOffVideos
|
|
|
from applications.tasks.monitor_tasks import CheckVideoAuditStatus
|
|
|
+from applications.tasks.monitor_tasks import InnerGzhArticlesMonitor
|
|
|
from applications.tasks.monitor_tasks import OutsideGzhArticlesMonitor
|
|
|
from applications.tasks.monitor_tasks import OutsideGzhArticlesCollector
|
|
|
|
|
@@ -178,6 +179,22 @@ class TaskScheduler:
|
|
|
},
|
|
|
)
|
|
|
|
|
|
+ case "inner_article_monitor":
|
|
|
+
|
|
|
+ async def background_inner_article_monitor():
|
|
|
+ task = InnerGzhArticlesMonitor(self.db_client)
|
|
|
+ final_status = await task.deal()
|
|
|
+ await self.release_task(task_name, date_string, final_status=final_status)
|
|
|
+
|
|
|
+ asyncio.create_task(background_inner_article_monitor())
|
|
|
+ return await task_schedule_response.success_response(
|
|
|
+ task_name=task_name,
|
|
|
+ data={
|
|
|
+ "code": 0,
|
|
|
+ "message": "inner_article_monitor started background",
|
|
|
+ }
|
|
|
+ )
|
|
|
+
|
|
|
case _:
|
|
|
await self.log_client.log(
|
|
|
contents={
|