ray.serve.context.ReplicaContext#

class ray.serve.context.ReplicaContext(app_name: str, deployment: str, replica_tag: str, servable_object: Callable)[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

servable_object