python/ray/serve/deployment_state.py
def check_started(self) -> ReplicaStartupStatus:
        """Check if the replica has started. If so, transition to RUNNING.

        Should handle the case where the replica has already stopped.

        Returns:
            status (ReplicaStartupStatus): Most recent state of replica by
                querying actor obj ref
        """
        status, version = self._actor.check_ready()

        if status == ReplicaStartupStatus.SUCCEEDED:
            # Re-assign DeploymentVersion if start / update / recover succeeded
            # by reading re-computed version in RayServeReplica
            if version is not None:
                self._version = version

        return status
Check if the replica has started. If so, transition to RUNNING.

        Should handle the case where the replica has already stopped.

        Returns:
            status (ReplicaStartupStatus): Most recent state of replica by
                querying actor obj ref
        
Check if the replica has started. If so, transition to RUNNING.
Should handle the case where the replica has already stopped.
Check if the replica has started . If so transition to RUNNING . Should handle the case where the replica has already stopped .
def check_started(self) -> ReplicaStartupStatus:
        status, version = self._actor.check_ready()
        if status == ReplicaStartupStatus.SUCCEEDED:
            if version is not None:
                self._version = version
        return status
def check_started ( self ) -> ReplicaStartupStatus : status , version = self . _actor . check_ready ( ) if status == ReplicaStartupStatus . SUCCEEDED : if version is not None : self . _version = version return status
Check if the replica has started.
Check if the replica has started .
"""Check if the replica has started. If so, transition to RUNNING.

        Should handle the case where the replica has already stopped.

        Returns:
            status (ReplicaStartupStatus): Most recent state of replica by
                querying actor obj ref
        """ # Re-assign DeploymentVersion if start / update / recover succeeded # by reading re-computed version in RayServeReplica
status (ReplicaStartupStatus): Most recent state of replica by
querying actor obj ref
status ( ReplicaStartupStatus ) : Most recent state of replica by querying actor obj ref
self