feat: 使用增强的任务ID生成器替换UUID

This commit is contained in:
wizardchen
2026-01-07 15:18:18 +08:00
parent 953e0c1a55
commit 042d860329
5 changed files with 228 additions and 8 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import (
"github.com/Tencent/WeKnora/internal/logger"
"github.com/Tencent/WeKnora/internal/types"
"github.com/Tencent/WeKnora/internal/types/interfaces"
"github.com/google/uuid"
"github.com/Tencent/WeKnora/internal/utils"
"golang.org/x/sync/errgroup"
)
@@ -253,7 +253,7 @@ func (e *EvaluationService) Evaluation(ctx context.Context,
// Create evaluation task with unique ID
logger.Info(ctx, "Creating evaluation task")
taskID := uuid.New().String()
taskID := utils.GenerateTaskID("evaluation", tenantID, datasetID)
logger.Infof(ctx, "Generated task ID: %s", taskID)
// Prepare evaluation detail with all parameters