Fix AutoScaler should not fail on any command, but only on the agent failing to launch

This commit is contained in:
allegroai 2022-02-02 15:34:11 +02:00
parent 8265ca9375
commit 9f77b3275f

View File

@ -14,7 +14,6 @@ bash_script_template = '''\
#!/bin/bash
set -x
set -e
apt-get update
apt-get install -y \
@ -43,6 +42,12 @@ source ~/.bashrc
{bash_script}
{driver_extra}
python -m clearml_agent --config-file ~/clearml.conf daemon --queue '{queue}' {docker}
if [[ $? -ne 0 ]]
then
exit 1
fi
shutdown
'''