Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat: add REDIS_USERNAME support for asynq client

Dounx548450c170db
diff --git a/internal/router/task.go b/internal/router/task.go
index 06149ca08..8bf0d27d4 100644
--- a/internal/router/task.go
+++ b/internal/router/task.go
@@ -32,6 +32,7 @@ func getAsynqRedisClientOpt() *asynq.RedisClientOpt {
}
opt := &asynq.RedisClientOpt{
Addr: os.Getenv("REDIS_ADDR"),
+ Username: os.Getenv("REDIS_USERNAME"),
Password: os.Getenv("REDIS_PASSWORD"),
ReadTimeout: 100 * time.Millisecond,
WriteTimeout: 200 * time.Millisecond,