diff --git a/sky/utils/command_runner.py b/sky/utils/command_runner.py index 0b8ffc74171..3ed69d0e2a1 100644 --- a/sky/utils/command_runner.py +++ b/sky/utils/command_runner.py @@ -184,9 +184,8 @@ def _get_command_to_run( # cluster by 1 second. # sourcing ~/.bashrc is not required for internal executions command += [ - shlex.quote( - 'true && export OMP_NUM_THREADS=1 PYTHONWARNINGS=ignore' - f' && ({cmd})') + shlex.quote('true && export OMP_NUM_THREADS=1 ' + f'PYTHONWARNINGS=ignore && ({cmd})') ] if not separate_stderr: command.append('2>&1') @@ -433,8 +432,7 @@ def run( process_stream, separate_stderr, # A hack to remove the following SSH warning+bash warnings (twice): - # Warning: Permanently added 'xx.xx.xx.xx' to the list of known - # hosts. + # Warning: Permanently added 'xx.xx.xx.xx' to the list of known... # bash: cannot set terminal process group # bash: no job control in this shell # When not source_bashrc, the bash warning will only show once.