add documentation
This commit is contained in:
parent
1b23363f6f
commit
695f1f57ba
8 changed files with 116 additions and 14 deletions
3
queue.go
3
queue.go
|
|
@ -27,6 +27,9 @@ func (q *Queuemux) AddWork(pattern string, work Asynqtask) {
|
|||
q.themux.HandleFunc(pattern, work)
|
||||
}
|
||||
|
||||
// RunQueueserver starts the queue server with predefined configurations and handles tasks using the assigned ServeMux.
|
||||
// Configures the queue server with concurrency limits and priority-based queue management.
|
||||
// Logs and terminates the program if the server fails to run.
|
||||
func (q *Queuemux) RunQueueserver() {
|
||||
|
||||
redisAddr := fmt.Sprintf("%v:%v", os.Getenv("REDIS_HOST"), os.Getenv("REDIS_PORT"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue