Open Mazyod opened 1 year ago
Hi, I'm a bot from the Ray team :)
To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months.
If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel.
What happened + What you expected to happen
When calling
ray.actor.exit_actor()
within an actor, within anasyncio.Task
, and a client is awaiting that task, Ray throws aSYSTEM_EXIT
, dumping the whole stack trace. Within our project, it also causedray.init
to be called again for some reason, leading to an error thrown that ray has already been initialized.The issue is already described here, but here is the code anyway. Notice how awaiting the
asyncio.Task
afterexit_actor()
has been called seems to be fine, the issue might be only when awaiting that task before the exit.Versions / Dependencies
Python 3.10.9 Ray 2.2.0 WSL 2 Ubuntu 20.04
Reproduction script
Issue Severity
Medium: It is a significant difficulty but I can work around it.