Files
Enterprise-Knowledge-Base/internal/application/service/knowledge_task_options.go
T
wizardchen d496d0fc73 feat(task-queue): split upstream workers into isolated core/enrichment/maintenance pools
Route summary/sync/maintenance tasks to dedicated queues and servers so parsing, enrichment, and batch work no longer share one concurrency budget, while extending the runtime dashboard and settings validation to reflect the new topology.
2026-07-10 23:51:29 +08:00

18 lines
423 B
Go

package service
import (
"github.com/Tencent/WeKnora/internal/config"
"github.com/Tencent/WeKnora/internal/types"
"github.com/hibiken/asynq"
)
func documentProcessTaskOptions(cfg *config.Config, extra ...asynq.Option) []asynq.Option {
opts := []asynq.Option{
asynq.Queue(types.QueueDefault),
asynq.Timeout(config.DocumentProcessTimeout(cfg)),
asynq.MaxRetry(3),
}
opts = append(opts, extra...)
return opts
}