- class ray.serve.context.ReplicaContext(app_name: str, deployment: str, replica_tag: str, servable_object: Callable, _internal_controller_name: str)#
Stores runtime context info for replicas.
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.