[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:
Archit Kulkarni 2022-03-15 11:46:09 -07:00 committed by GitHub
parent c694ed4594
commit fc182006ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.