diff --git a/template/v2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh b/template/v2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh index 39f339731..4d2096153 100644 --- a/template/v2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh +++ b/template/v2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh @@ -414,6 +414,8 @@ fi nohup python /etc/sagemaker/sm_pysdk_default_config.py & # Only run the following commands if SAGEMAKER_APP_TYPE_LOWERCASE is jupyterlab and domain is not in express mode if [ "${SAGEMAKER_APP_TYPE_LOWERCASE}" = "jupyterlab" ] && [ "$is_express_mode" != "true" ]; then + # clean up gen ai debugging file + rm -rf /home/sagemaker-user/src/.temp_sagemaker_unified_studio_debugging_info # do not fail immediately for non-zero exit code returned # by start-workflows-container. An expected non-zero exit # code will be returned if there is not a minimum of 2 diff --git a/template/v3/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh b/template/v3/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh index c8f072f25..197c1ae7e 100755 --- a/template/v3/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh +++ b/template/v3/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh @@ -415,6 +415,8 @@ fi nohup python /etc/sagemaker/sm_pysdk_default_config.py & # Only run the following commands if SAGEMAKER_APP_TYPE_LOWERCASE is jupyterlab and domain is not in express mode if [ "${SAGEMAKER_APP_TYPE_LOWERCASE}" = "jupyterlab" ] && [ "$is_express_mode" != "true" ]; then + # clean up gen ai debugging file + rm -rf /home/sagemaker-user/src/.temp_sagemaker_unified_studio_debugging_info # do not fail immediately for non-zero exit code returned # by start-workflows-container. An expected non-zero exit # code will be returned if there is not a minimum of 2