Skip to content

Commit

Permalink
Address comment: update comments
Browse files Browse the repository at this point in the history
Closes: #49451
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed Mar 4, 2025
1 parent dd9c0d5 commit 13096b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python/ray/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1767,11 +1767,10 @@ def exit_actor():
This API can be used only inside an actor. Use ray.kill
API if you'd like to kill an actor using actor handle.
When the API is called, if the actor it not async actor,
it raises an exception and exits. For async actor,
it sets a flag to exit and the worker periodically checks
the flag and exits the actor. So there may be some delay
before the actor actually exits.
When this API is called, an exception is raised and the actor
will exit immediately. For asyncio actors, there may be a short
delay before the actor exits if the API is called from a background
task.
Any queued methods will fail. Any ``atexit``
handlers installed in the actor will be run.
Expand Down

0 comments on commit 13096b1

Please sign in to comment.