Skip to content

Commit d125203

Browse files
authored
Merge pull request #1621 from virtualcell/dan-ss-mantis-node
we now read the slurm node from property
2 parents 1f440c3 + aaaaa62 commit d125203

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

vcell-server/src/main/java/cbit/vcell/message/server/htc/slurm/SlurmProxy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,10 @@ private void slurmBatchScriptInit(String jobName, boolean isPowerUser, MemLimitR
10121012
lsb.write("#SBATCH --mem-per-cpu=" + memoryMBAllowed.getMemLimit() + "M");
10131013
lsb.write("#SBATCH --nodes=1");
10141014
lsb.write("#SBATCH --time=" + jobTimeout + "\t\t# timeout for the entire job");
1015+
String nodelist = PropertyLoader.getProperty(PropertyLoader.htcNodeList, null);
1016+
if (nodelist!=null && nodelist.trim().length()>0) {
1017+
lsb.write("#SBATCH --nodelist="+nodelist);
1018+
}
10151019
lsb.write("#SBATCH --no-kill");
10161020
lsb.write("#SBATCH --no-requeue");
10171021

vcell-server/src/test/java/cbit/vcell/message/server/htc/slurm/SlurmProxyTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ public void testSimJobScriptLangevin() throws IOException, XmlParseException, Ex
290290
@Test
291291
public void testSimJobScriptLangevinBatch() throws IOException, XmlParseException, ExpressionException {
292292
setProperty(PropertyLoader.htc_vcellopt_docker_name, "ghcr.io/virtualcell/vcell-opt:7.7.0.39");
293+
setProperty(PropertyLoader.htcNodeList, "mantis-040");
293294
setProperty(PropertyLoader.vcellSoftwareVersion, "Rel_Version_7.7.0_build_39");
294295
setProperty(PropertyLoader.vcellServerIDProperty,"TEST2");
295296
setProperty(PropertyLoader.jmsSimHostExternal, "k8s-wn-01.cam.uchc.edu");

vcell-server/src/test/resources/slurm_fixtures/langevin/V_TEST2_999999999_0_0.slurm.sub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#SBATCH --mem-per-cpu=4096M
1111
#SBATCH --nodes=1
1212
#SBATCH --time=6-14:24:00 # timeout for the entire job
13+
#SBATCH --nodelist=mantis-040
1314
#SBATCH --no-kill
1415
#SBATCH --no-requeue
1516

0 commit comments

Comments
 (0)