feat/ 导出开发容器内的数据用于评估

This commit is contained in:
Kevin
2026-04-03 14:44:46 +08:00
parent 828a29748e
commit b75edacb5f
51 changed files with 5999 additions and 57 deletions

View File

@@ -16,6 +16,7 @@ from app.core.config import settings
from app.features.asset import models as _asset_models # noqa: F401 - register Asset
from app.features.auth import models as _auth_models # noqa: F401
from app.features.conversation import models as _conv_models # noqa: F401
from app.features.evaluation import models as _eval_models # noqa: F401
from app.features.memoir import models as _memoir_models # noqa: F401
from app.features.memory import models as _memory_models # noqa: F401
from app.features.payment import models as _payment_models # noqa: F401
@@ -35,6 +36,7 @@ celery_app = Celery(
"app.tasks.chapter_cover_tasks",
"app.tasks.chapter_compose_tasks",
"app.tasks.memory_compaction_tasks",
"app.tasks.evaluation_tasks",
],
)

View File

@@ -0,0 +1,20 @@
"""评测实验 Celery 任务。"""
from __future__ import annotations
import asyncio
from celery import shared_task
from app.core.logging import get_logger
logger = get_logger(__name__)
@shared_task(name="evaluation.run_experiment")
def run_eval_experiment_task(experiment_id: str) -> None:
from app.features.evaluation.execution_service import execute_experiment_full
logger.info("evaluation task start experiment_id={}", experiment_id)
asyncio.run(execute_experiment_full(experiment_id))
logger.info("evaluation task done experiment_id={}", experiment_id)