Skip to content

Commit

Permalink
Fix duplicate cd $SCRATCH in sbatch
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
  • Loading branch information
lebrice committed Apr 29, 2024
1 parent 052bb82 commit 3beb916
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions milatools/utils/compute_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import warnings

from milatools.cli import console
from milatools.cli.init_command import DRAC_CLUSTERS
from milatools.cli.utils import (
MilatoolsUserError,
get_hostname_to_use_for_compute_node,
Expand Down Expand Up @@ -390,9 +389,6 @@ async def sbatch(
+ shlex.join(sbatch_flags)
+ " --wrap 'srun sleep 7d'"
)
cluster = login_node.hostname
if cluster in DRAC_CLUSTERS:
sbatch_command = f"cd $SCRATCH && {sbatch_command}"

job_id = None
async with cancel_new_jobs_on_interrupt(login_node, job_name):
Expand Down

0 comments on commit 3beb916

Please sign in to comment.