Ray.wait doesn't throw the exception of the task

1. Severity of the issue: (select one)
[x ] Medium: Significantly affects my productivity but can find a workaround.

2. Environment:

  • Ray version: 2.38.0
  • Python version: 3.12
  • OS:
  • Cloud/Infrastructure:
  • Other libs/tools (if relevant):

3. What happened vs. what you expected:

  • Expected: if the actor throw an exception in the task, i would expect to get the exception in the ray.wait on the reference and not only in the ray.get
  • Actual: I don’t get it in the ray.get

My actor returns a large object from its task
I don’t want to do ray.get in my client, but pass the reference to another actor, however i still want to know that the actor task is completed as soon as it is and if it was successful or not.
The only method we could think of is to return success/failure as another value from the task as well as the large object. In the client we would do ray.get on the success/failure only

we know that sometimes it is suggeted to do ray.put inside the task, however this would mean that the actor is the owner of this data and if it were to crash we would lose the data, even though the actor completed.

I am wondering if there is another solution