package main

import (
	

	

	tasks 
)

const redisAddr = "127.0.0.1:6379"

func main() {
	 := asynq.NewServer(
		asynq.RedisClientOpt{Addr: redisAddr},
		asynq.Config{
			// Specify how many concurrent workers to use
			Concurrency: 10,
			// Optionally specify multiple queues with different priority.
			Queues: map[string]int{
				"critical": 6,
				"default":  3,
				"low":      1,
			},
			// See the godoc for other configuration options
		},
	)

	// mux maps a type to a handler
	 := asynq.NewServeMux()
	.HandleFunc(tasks.TypeFileProcessing, tasks.HandleFileProcessingTask)
	// ...register other handlers...

	if  := .Run();  != nil {
		log.Fatalf("could not run server: %v", )
	}
}