projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce the doctest lease duration...
[python_utils.git]
/
executors.py
diff --git
a/executors.py
b/executors.py
index a9d25dad50ccff1b5b85594b84184fd2982d7c49..6485afa054689c3b668adb1e0708b7f2d29ed8b9 100644
(file)
--- a/
executors.py
+++ b/
executors.py
@@
-36,7
+36,7
@@
import histogram as hist
import string_utils
from ansi import bg, fg, reset, underline
from decorator_utils import singleton
import string_utils
from ansi import bg, fg, reset, underline
from decorator_utils import singleton
-from exec_utils import cmd_
in_background, cmd_with_timeout
, run_silently
+from exec_utils import cmd_
exitcode, cmd_in_background
, run_silently
from thread_utils import background_thread
logger = logging.getLogger(__name__)
from thread_utils import background_thread
logger = logging.getLogger(__name__)
@@
-993,7
+993,7
@@
class RemoteExecutor(BaseExecutor):
self.status.record_processing_began(uuid)
cmd = (
f'{SSH} {bundle.username}@{bundle.machine} '
self.status.record_processing_began(uuid)
cmd = (
f'{SSH} {bundle.username}@{bundle.machine} '
- f'"source py3
8
-venv/bin/activate &&'
+ f'"source py3
9
-venv/bin/activate &&'
f' /home/scott/lib/python_modules/remote_worker.py'
f' --code_file {bundle.code_file} --result_file {bundle.result_file}"'
)
f' /home/scott/lib/python_modules/remote_worker.py'
f' --code_file {bundle.code_file} --result_file {bundle.result_file}"'
)
@@
-1380,7
+1380,7
@@
class DefaultExecutors(object):
def _ping(host) -> bool:
logger.debug('RUN> ping -c 1 %s', host)
try:
def _ping(host) -> bool:
logger.debug('RUN> ping -c 1 %s', host)
try:
- x = cmd_
with_timeout
(f'ping -c 1 {host} >/dev/null 2>/dev/null', timeout_seconds=1.0)
+ x = cmd_
exitcode
(f'ping -c 1 {host} >/dev/null 2>/dev/null', timeout_seconds=1.0)
return x == 0
except Exception:
return False
return x == 0
except Exception:
return False