src/workflow/lambda.py [202:235]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            info = self.sm.describe_domain(DomainId = domain_id)
            if info["Status"] == "InService" :
                
                self.update_and_next(info)
                break
            
            elif info["Status"] == "Failed" or \
                 info["Status"] == "Deleting" or \
                 info["Status"] == "Update_Failed" or \
                 info["Status"] == "Delete_Failed" : 
                
                self.update_and_next(info)
                raise Exception(f"Failed to update SageMaker Domain: {info}.")    
            
            else :
                self._handle_wait(start_time, timeout)
            

    def _publish_image_to_studio(self, repo_name, image_name, role, app_image_config, update_domain_input, timeout) :
        
        start= time()
        self._create_sagemaker_image(image_name, role, timeout, start)
            
        ecr_uri = ecr_uri_for_image(repo_name, image_name)
        image_version = self._create_sagemaker_image_version(image_name, ecr_uri, timeout, start)
        
        images = update_domain_input["DefaultUserSettings"]["KernelGatewayAppSettings"]["CustomImages"]
        app_config_name = app_image_config["AppImageConfigName"]
        self._update_container_config_ver(images, image_name, app_config_name, image_version)
 
        self._create_app_config(app_image_config)
        self._update_studio_domain(update_domain_input, timeout, start)

    def run(self) :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/workflow/publish.py [167:199]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            info = self.sm.describe_domain(DomainId = domain_id)
            if info["Status"] == "InService" :
                
                self.update_and_next(info)
                break
            
            elif info["Status"] == "Failed" or \
                 info["Status"] == "Deleting" or \
                 info["Status"] == "Update_Failed" or \
                 info["Status"] == "Delete_Failed" : 
                
                self.update_and_next(info)
                raise Exception(f"Failed to update SageMaker Domain: {info}.")    
            
            else :
                self._handle_wait(start_time, timeout)
            
    def _publish_image_to_studio(self, repo_name, image_name, role, app_image_config, update_domain_input, timeout) :
        
        start= time()
        self._create_sagemaker_image(image_name, role, timeout, start)
            
        ecr_uri = ecr_uri_for_image(repo_name, image_name)
        image_version = self._create_sagemaker_image_version(image_name, ecr_uri, timeout, start)
        
        images = update_domain_input["DefaultUserSettings"]["KernelGatewayAppSettings"]["CustomImages"]
        app_config_name = app_image_config["AppImageConfigName"]
        self._update_container_config_ver(images, image_name, app_config_name, image_version)
 
        self._create_app_config(app_image_config)
        self._update_studio_domain(update_domain_input, timeout, start)

    def run(self) :
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



