Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Perry
smux
Commits
f4ffcf5c
Commit
f4ffcf5c
authored
Nov 10, 2020
by
Kerri Wait
Browse files
Merge branch 'srun' into 'master'
Srun See merge request
hpc-team/smux!13
parents
536ac01a
364993cb
Pipeline
#36655
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
f4ffcf5c
...
...
@@ -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
,
...
...
smux/__init__.py
View file @
f4ffcf5c
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment