ray.runtime_context.RuntimeContext#
- class ray.runtime_context.RuntimeContext(worker)[source]#
A class used for getting runtime context.
Methods
Get a dictionary of the current context.
Get the current worker's visible accelerator ids.
Get the current actor ID in this worker.
Get the current actor name of this worker.
Get the assigned resources to this worker.
Get current job ID for this worker or driver.
Get current node ID for this worker or driver.
Get the current Placement group ID of this worker.
Get the runtime env string used for the current driver or worker.
Get current task function name string for this worker.
Get current task ID for this worker.
Get current task name for this worker.
Get current worker ID for this worker or driver process.
Attributes
Get the current actor ID in this worker.
Get the current actor handle of this actor itself.
Get the current Placement group ID of this worker.
Get the GCS address of the ray cluster.
Get current job ID for this worker or driver.
Get the current namespace of this worker.
Get current node ID for this worker or driver.
Get the runtime env used for the current driver or worker.
Get if the current task should capture parent's placement group.
Get current task ID for this worker.
Check whether this actor has been restarted.