mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[Doc] Add missing runtime context namespace doc (#23120)
The public field RuntimeContext.namespace didn't have a docstring so it wasn't showing up at all in the docs. This PR adds a basic docstring.
This commit is contained in:
parent
c694ed4594
commit
fc182006ec
1 changed files with 6 additions and 1 deletions
|
@ -118,11 +118,16 @@ class RuntimeContext(object):
|
|||
|
||||
@property
|
||||
def namespace(self):
|
||||
"""Get the current namespace of this worker.
|
||||
|
||||
Returns:
|
||||
The current namespace of this worker.
|
||||
"""
|
||||
return self.worker.namespace
|
||||
|
||||
@property
|
||||
def was_current_actor_reconstructed(self):
|
||||
"""Check whether this actor has been restarted
|
||||
"""Check whether this actor has been restarted.
|
||||
|
||||
Returns:
|
||||
Whether this actor has been ever restarted.
|
||||
|
|
Loading…
Add table
Reference in a new issue