Skip to content

Commit 336b52e

Browse files
author
Michael Buchar
committed
fix(config): use KUEUE_ENABLED consistently (#510)
References reanahub/reana#901
1 parent 0d418ce commit 336b52e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

reana_job_controller/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
SLURM_SSH_AUTH_TIMEOUT = float(os.getenv("SLURM_SSH_AUTH_TIMEOUT", "60"))
229229
"""Seconds to wait for SLURM SSH authentication response."""
230230

231-
USE_KUEUE = bool(strtobool(os.getenv("USE_KUEUE", "False")))
231+
KUEUE_ENABLED = bool(strtobool(os.getenv("KUEUE_ENABLED", "False")))
232232
"""Whether to use Kueue to manage job execution."""
233233

234234
KUEUE_LOCAL_QUEUE_NAME = "local-queue-job"

reana_job_controller/kubernetes_job_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
REANA_KUBERNETES_JOBS_MAX_USER_MEMORY_REQUEST,
6464
REANA_KUBERNETES_JOBS_MAX_USER_MEMORY_LIMIT,
6565
REANA_USER_ID,
66-
USE_KUEUE,
66+
KUEUE_ENABLED,
6767
KUEUE_LOCAL_QUEUE_NAME,
6868
)
6969
from reana_job_controller.errors import ComputingBackendSubmissionError
@@ -183,7 +183,7 @@ def execute(self):
183183
"namespace": REANA_RUNTIME_KUBERNETES_NAMESPACE,
184184
"labels": (
185185
{"kueue.x-k8s.io/queue-name": KUEUE_LOCAL_QUEUE_NAME}
186-
if USE_KUEUE
186+
if KUEUE_ENABLED
187187
else {}
188188
),
189189
},

0 commit comments

Comments
 (0)