python/ray/serve/deployment_state.py
def deploy(self, deployment_name: str, deployment_info: DeploymentInfo) -> bool:
        """Deploy the deployment.

        If the deployment already exists with the same version and config,
        this is a no-op and returns False.

        Returns:
            bool: Whether or not the deployment is being updated.
        """
        if deployment_name in self._deleted_deployment_metadata:
            del self._deleted_deployment_metadata[deployment_name]

        if deployment_name not in self._deployment_states:
            self._deployment_states[deployment_name] = self._create_deployment_state(
                deployment_name
            )

        return self._deployment_states[deployment_name].deploy(deployment_info)
Deploy the deployment.

        If the deployment already exists with the same version and config,
        this is a no-op and returns False.

        Returns:
            bool: Whether or not the deployment is being updated.
        
Deploy the deployment.
If the deployment already exists with the same version and config,
this is a no-op and returns False.
Deploy the deployment . If the deployment already exists with the same version and config this is a no - op and returns False .
def deploy(self, deployment_name: str, deployment_info: DeploymentInfo) -> bool:
        if deployment_name in self._deleted_deployment_metadata:
            del self._deleted_deployment_metadata[deployment_name]
        if deployment_name not in self._deployment_states:
            self._deployment_states[deployment_name] = self._create_deployment_state(
                deployment_name
            )
        return self._deployment_states[deployment_name].deploy(deployment_info)
def deploy ( self , deployment_name : str , deployment_info : DeploymentInfo ) -> bool : if deployment_name in self . _deleted_deployment_metadata : del self . _deleted_deployment_metadata [ deployment_name ] if deployment_name not in self . _deployment_states : self . _deployment_states [ deployment_name ] = self . _create_deployment_state ( deployment_name ) return self . _deployment_states [ deployment_name ] . deploy ( deployment_info )
Deploy the deployment.
Deploy the deployment .
"""Deploy the deployment.

        If the deployment already exists with the same version and config,
        this is a no-op and returns False.

        Returns:
            bool: Whether or not the deployment is being updated.
        """
Whether or not the deployment is being updated.
Whether or not the deployment is being updated .
bool
self
deployment_name
str
deployment_info
DeploymentInfo