This commit is contained in:
2026-08-14 15:52:52 +08:00
parent 4a2355a902
commit 5eed7686c9
@@ -148,9 +148,10 @@ async def run_task(
if task is None:
raise HTTPException(status_code=404, detail="任务不存在")
from app.tasks.celery_app import RECOVERY_QUEUE
from app.tasks.scheduled_tasks import execute_scheduled_task
execute_scheduled_task.apply_async(args=[task_id])
execute_scheduled_task.apply_async(args=[task_id], queue=RECOVERY_QUEUE)
return {"message": "任务已提交执行"}