public interface RuntimeContext
| Modifier and Type | Method and Description |
|---|---|
List<NodeInfo> |
getAllNodeInfo()
Get all node information in Ray cluster.
|
ActorId |
getCurrentActorId()
Get the current actor ID.
|
JobId |
getCurrentJobId()
Get the current Job ID.
|
TaskId |
getCurrentTaskId()
Get current task ID.
|
boolean |
isSingleProcess()
Returns true if Ray is running in single-process mode, false if Ray is running in cluster mode.
|
boolean |
wasCurrentActorRestarted()
Returns true if the current actor was restarted, otherwise false.
|
JobId getCurrentJobId()
TaskId getCurrentTaskId()
ActorId getCurrentActorId()
Note, this can only be called in actors.
boolean wasCurrentActorRestarted()
boolean isSingleProcess()
Copyright © 2021. All rights reserved.