ray.serve.context.ReplicaContext#

class ray.serve.context.ReplicaContext(replica_id: ReplicaID, servable_object: Callable, _deployment_config: DeploymentConfig)[source]#

Stores runtime context info for replicas.

Fields:
  • app_name: name of the application the replica is a part of.

  • deployment: name of the deployment the replica is a part of.

  • replica_tag: unique ID for the replica.

  • servable_object: instance of the user class/function this replica is running.

DeveloperAPI: This API may change across minor Ray releases.

Methods

Attributes

app_name

deployment

replica_tag

replica_id

servable_object