Skip to content

Commit f85968e

Browse files
authored
Skip setting workflows container if domain is in express mode (#789)
2 parents 7f5b65a + cfa7980 commit f85968e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

template/v2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ fi
305305

306306
# Generate sagemaker pysdk intelligent default config
307307
nohup python /etc/sagemaker/sm_pysdk_default_config.py &
308-
# Only run the following commands if SAGEMAKER_APP_TYPE_LOWERCASE is jupyterlab
309-
if [ "${SAGEMAKER_APP_TYPE_LOWERCASE}" = "jupyterlab" ]; then
308+
# Only run the following commands if SAGEMAKER_APP_TYPE_LOWERCASE is jupyterlab and domain is not in express mode
309+
if [ "${SAGEMAKER_APP_TYPE_LOWERCASE}" = "jupyterlab" ] && [ "$is_express_mode" != "true" ]; then
310310
# do not fail immediately for non-zero exit code returned
311311
# by start-workflows-container. An expected non-zero exit
312312
# code will be returned if there is not a minimum of 2

template/v3/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ fi
306306

307307
# Generate sagemaker pysdk intelligent default config
308308
nohup python /etc/sagemaker/sm_pysdk_default_config.py &
309-
# Only run the following commands if SAGEMAKER_APP_TYPE_LOWERCASE is jupyterlab
310-
if [ "${SAGEMAKER_APP_TYPE_LOWERCASE}" = "jupyterlab" ]; then
309+
# Only run the following commands if SAGEMAKER_APP_TYPE_LOWERCASE is jupyterlab and domain is not in express mode
310+
if [ "${SAGEMAKER_APP_TYPE_LOWERCASE}" = "jupyterlab" ] && [ "$is_express_mode" != "true" ]; then
311311
# do not fail immediately for non-zero exit code returned
312312
# by start-workflows-container. An expected non-zero exit
313313
# code will be returned if there is not a minimum of 2

0 commit comments

Comments
 (0)