Skip to content

Commit 1084c62

Browse files
committed
Slurm no longer supports --workdir
1 parent e07213a commit 1084c62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cluster/src/org/labkey/cluster/pipeline/SlurmExecutionEngine.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,11 @@ private File createSubmitScript(PipelineJob job) throws PipelineJobException
527527
writer.write(line + "\n");
528528
}
529529

530-
writer.write("#SBATCH --workdir=\"" + getConfig().getClusterPath(job.getLogFile().getParentFile()) + "\"\n");
530+
// NOTE: --workdir no longer support in sbatch
531+
//writer.write("#SBATCH --workdir=\"" + getConfig().getClusterPath(job.getLogFile().getParentFile()) + "\"\n");
531532

532533
String args = StringUtils.join(getConfig().getJobArgs(outDir, serializedJobFile, job, this), " ");
534+
writer.write("cd " + getConfig().getClusterPath(job.getLogFile().getParentFile()) + "\n");
533535
writer.write("srun " + getConfig().getRemoteExecutable() + " " + args);
534536
}
535537
}

0 commit comments

Comments
 (0)