Skip to content

Commit 42865ab

Browse files
committed
fix
Signed-off-by: Hemil Desai <hemild@nvidia.com>
1 parent eea84be commit 42865ab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

nemo_run/run/torchx_backend/schedulers/slurm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _submit_dryrun(self, app: AppDef, cfg: Executor) -> AppDryRunInfo[Any]: # t
115115

116116
command = [app.roles[0].entrypoint] + app.roles[0].args
117117
# Allow selecting Ray template via environment variable
118-
ray_template_name = os.environ.get("NEMO_SLURM_RAY_TEMPLATE", "ray.sub.j2")
118+
ray_template_name = os.environ.get("NEMO_RUN_SLURM_RAY_TEMPLATE", "ray.sub.j2")
119119
req = SlurmRayRequest(
120120
name=app.roles[0].name,
121121
launch_cmd=["sbatch", "--requeue", "--parsable"],

test/run/torchx_backend/schedulers/test_slurm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def test_schedule_with_dependencies(slurm_scheduler, slurm_executor):
369369

370370

371371
def test_ray_template_env_var(slurm_scheduler, slurm_executor):
372-
"""Test that NEMO_SLURM_RAY_TEMPLATE environment variable selects the correct template."""
372+
"""Test that NEMO_RUN_SLURM_RAY_TEMPLATE environment variable selects the correct template."""
373373
from nemo_run.config import USE_WITH_RAY_CLUSTER_KEY
374374
from nemo_run.run.ray.slurm import SlurmRayRequest
375375

@@ -396,7 +396,7 @@ def test_ray_template_env_var(slurm_scheduler, slurm_executor):
396396

397397
# Test custom template name via environment variable
398398
with (
399-
mock.patch.dict(os.environ, {"NEMO_SLURM_RAY_TEMPLATE": "ray_enroot.sub.j2"}),
399+
mock.patch.dict(os.environ, {"NEMO_RUN_SLURM_RAY_TEMPLATE": "ray_enroot.sub.j2"}),
400400
mock.patch("nemo_run.core.execution.utils.fill_template") as mock_fill,
401401
):
402402
mock_fill.return_value = "#!/bin/bash\n# Mock script"

0 commit comments

Comments
 (0)