Commit f4ffcf5c authored by Kerri Wait's avatar Kerri Wait
Browse files

Merge branch 'srun' into 'master'

Srun

See merge request !13
parents 536ac01a 364993cb
......@@ -23,7 +23,7 @@ setup(
desktop_entries={
},
version='0.0.3',
version='0.0.4',
description='Python package to manipulate SLURM and ssh into providing interactive shells on the SLURM queue',
long_description=long_description,
......
......@@ -164,7 +164,7 @@ while [ -e /proc/$pid ]; do sleep 5; done
time.sleep(1)
import shutil
srunpath = shutil.which('srun')
os.execv(srunpath,["srun","--pty","-O","--jobid","{}".format(jobid),"tmux","attach-session","-t","{}".format(name)])
os.execv(srunpath,["srun","--pty","-O","--ntasks","1","--jobid","{}".format(jobid),"tmux","attach-session","-t","{}".format(name)])
@classmethod
def connectJob(cls,args):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment