From 644a8d46f0cf30f160a4fb5567c901fbcf78dea8 Mon Sep 17 00:00:00 2001 From: Ioannis Tsouvalas Date: Thu, 1 Aug 2024 07:50:31 +0000 Subject: [PATCH] correct env var name --- cmd/scheduler/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/scheduler/main.go b/cmd/scheduler/main.go index 742dae4..5127b4c 100644 --- a/cmd/scheduler/main.go +++ b/cmd/scheduler/main.go @@ -104,17 +104,17 @@ func main() { log.Info(tag, "trying to acquire the desired number of workers") - workerNumStr := os.Getenv("workerNum") + workerNumStr := os.Getenv("WORKER_NUM") if len(workerNumStr) == 0 { workerNumStr = "20" - log.Info(tag, "No `workerNum` provided, defaulting to 20") + log.Info(tag, "No `WORKER_NUM` provided, defaulting to 20") } else { - log.Info(tag, fmt.Sprintf("workerNum set to %s", workerNumStr)) + log.Info(tag, fmt.Sprintf("WORKER_NUM set to %s", workerNumStr)) } workerNum, err := strconv.Atoi(workerNumStr) if err != nil { - log.Error("Invalid workerNum: %v", err.Error()) + log.Error("Invalid WORKER_NUM: %v", err.Error()) os.Exit(255) }