This commit is contained in:
HelloWeit
2026-05-28 16:31:43 +08:00
committed by lyingbug
parent f1a27e0e18
commit edfabf3135
4 changed files with 61 additions and 8 deletions
@@ -1008,7 +1008,8 @@ func (s *knowledgeService) moveKnowledgeReparse(
return fmt.Errorf("failed to marshal document process payload: %w", err)
}
task := asynq.NewTask(types.TypeDocumentProcess, payloadBytes, asynq.Queue("default"), asynq.MaxRetry(3))
task := asynq.NewTask(types.TypeDocumentProcess, payloadBytes,
documentProcessTaskOptions(s.config, asynq.MaxRetry(3))...)
info, err := s.task.Enqueue(task)
if err != nil {
return fmt.Errorf("failed to enqueue document process task: %w", err)