mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix AutoScaler should not fail on any command, but only on the agent failing to launch
This commit is contained in:
parent
8265ca9375
commit
9f77b3275f
@ -14,7 +14,6 @@ bash_script_template = '''\
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
set -e
|
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
@ -43,6 +42,12 @@ source ~/.bashrc
|
|||||||
{bash_script}
|
{bash_script}
|
||||||
{driver_extra}
|
{driver_extra}
|
||||||
python -m clearml_agent --config-file ~/clearml.conf daemon --queue '{queue}' {docker}
|
python -m clearml_agent --config-file ~/clearml.conf daemon --queue '{queue}' {docker}
|
||||||
|
|
||||||
|
if [[ $? -ne 0 ]]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
shutdown
|
shutdown
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user