fix: Redirect SGE autoscaler script stdout and stderr.
Background processes launched from launch.sh directly prevents run
from finalization even then launch.sh itself has finished. Probably
it is caused by the stdout and stderr which aren't handled the same
way for different cloud provider.
@@ -236,7 +236,7 @@ function cp_cap_init {
if [ "$cluster_role" = "master" ] && check_cp_cap "CP_CAP_AUTOSCALE" && check_cp_cap "CP_CAP_SGE"
then
- $CP_PYTHON2_PATH $COMMON_REPO_DIR/scripts/autoscale_sge.py &
+ nohup $CP_PYTHON2_PATH $COMMON_REPO_DIR/scripts/autoscale_sge.py 1>/dev/null 2>$LOG_DIR/.nohup.sge.autoscale.log &
fi
fi
}
