Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cluster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
def
cluster
Merge requests
!2
A small fixes of init_cmd and locally launched commands
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
A small fixes of init_cmd and locally launched commands
fixes
into
main
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Martin Šurkovský
requested to merge
fixes
into
main
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
59501124
2 commits,
3 years ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/cluster/cluster.py
+
2
−
2
Options
@@ -128,7 +128,7 @@ def start_process(
workdir
=
os
.
getcwd
()
workdir
=
os
.
path
.
abspath
(
workdir
)
init_cmd
=
init_cmd
if
init_cmd
is
not
None
else
init_cmd
init_cmd
=
init_cmd
if
init_cmd
is
not
None
else
[]
init_cmd
=
list
(
init_cmd
)
if
modules
is
not
None
:
init_cmd
+=
[
f
"
ml
{
'
'
.
join
(
modules
)
}
"
]
@@ -160,7 +160,7 @@ ps -ho pgid $!
"""
.
strip
()
cmd_args
=
[]
if
host
:
if
not
is_local
(
host
)
:
cmd_args
+=
[
"
ssh
"
,
host
]
else
:
cmd_args
+=
[
"
setsid
"
]
Loading