Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
batsim
Commits
f9c128e8
Commit
f9c128e8
authored
Apr 28, 2017
by
Millian Poquet
Browse files
[tools] execN ssh command
parent
e0ecdee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/experiments/execute_instances.py
View file @
f9c128e8
...
...
@@ -235,7 +235,7 @@ def get_script_path():
async
def
instance_runner
(
data
,
hostname
,
local_rank
):
loop
=
asyncio
.
get_event_loop
()
assert
(
hostname
==
'localhost'
),
'unhandled atm'
while
len
(
data
.
sweeper
.
get_remaining
())
>
0
:
comb
=
data
.
sweeper
.
get_next
()
if
comb
==
None
:
...
...
@@ -261,6 +261,8 @@ async def instance_runner(data, hostname, local_rank):
iid
=
instance_id
,
comb
=
comb
))
# Preparing the launch
command
=
"""ssh {host} '{command}'"""
.
format
(
host
=
hostname
,
command
=
command
)
create_dir_if_not_exists
(
'{base_output_dir}/instances/output/'
.
format
(
base_output_dir
=
data
.
base_output_directory
))
stdout_filename
=
'{out}/instances/output/{iid}.stdout'
.
format
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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