Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e50a3c2d
Commit
e50a3c2d
authored
Aug 24, 2021
by
Antoine Kaufmann
Browse files
experiments: more verbose remote await_file
parent
d743d2a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
experiments/simbricks/exectools.py
experiments/simbricks/exectools.py
+3
-0
No files found.
experiments/simbricks/exectools.py
View file @
e50a3c2d
...
@@ -324,6 +324,9 @@ class RemoteExecutor(Executor):
...
@@ -324,6 +324,9 @@ class RemoteExecutor(Executor):
cwd
=
self
.
cwd
,
**
kwargs
)
cwd
=
self
.
cwd
,
**
kwargs
)
async
def
await_file
(
self
,
path
,
delay
=
0.05
,
verbose
=
False
,
timeout
=
30
):
async
def
await_file
(
self
,
path
,
delay
=
0.05
,
verbose
=
False
,
timeout
=
30
):
if
verbose
:
print
(
'%s.await_file(%s) started'
%
(
self
.
host_name
,
path
))
to_its
=
timeout
/
delay
to_its
=
timeout
/
delay
loop_cmd
=
(
'i=0 ; while [ ! -e %s ] ; do '
loop_cmd
=
(
'i=0 ; while [ ! -e %s ] ; do '
'if [ $i -ge %u ] ; then exit 1 ; fi ; '
'if [ $i -ge %u ] ; then exit 1 ; fi ; '
...
...
Write
Preview
Markdown
is supported
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