add helm chart installation

This commit is contained in:
Ybehrooz
2025-11-09 19:36:10 +03:30
parent f5057233a0
commit eb42739472
6 changed files with 154 additions and 74 deletions

22
handler/worker.go Normal file
View File

@@ -0,0 +1,22 @@
package handler
import (
"log"
"main/jobs"
"github.com/hibiken/asynq"
)
func startWorkerHelmInstaller() {
srv := asynq.NewServer(
asynq.RedisClientOpt{Addr: "130.185.77.247:30828", Password: "xwy8ahx46F"},
asynq.Config{Concurrency: 5},
)
mux := asynq.NewServeMux()
mux.HandleFunc(jobs.TypeInstallChart, jobs.HandleInstallCahrt)
if err := srv.Run(mux); err != nil {
log.Fatalf("Could not run worker: %v", err)
}
}