Skip to content

Commit

Permalink
WIP Debug CI
Browse files Browse the repository at this point in the history
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed Jan 20, 2025
1 parent 974e551 commit 8eac3e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/ray/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,9 +1775,13 @@ def exit_actor():
# In asyncio actor mode, we can't raise SystemExit because it will just
# quit the asycnio task, not the main thread. Instead, we use
# asyncio.Event for synchronization across multiple asyncio tasks.
class MyError(Exception):
pass

if worker.core_worker.current_actor_is_asyncio():
worker.core_worker.is_current_async_actor_exited = True
return
# return
raise MyError()

# Set a flag to indicate this is an intentional actor exit. This
# reduces log verbosity.
Expand Down

0 comments on commit 8eac3e4

Please sign in to comment.