mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 14:31:15 +08:00
[Core] Async API should raise on all RayError (#12043)
Before this PR we are raising just RayTaskError, this means errors like RayActorError(Actor Died) won't be propogated and thrown at `await object_ref`. This PR fixes that.
This commit is contained in:
@@ -1524,7 +1524,7 @@ cdef void async_set_result(shared_ptr[CRayObject] obj,
|
||||
cpython.Py_DECREF(py_future)
|
||||
return
|
||||
|
||||
if isinstance(result, RayTaskError):
|
||||
if isinstance(result, RayError):
|
||||
ray.worker.last_task_error_raise_time = time.time()
|
||||
py_future.set_exception(result.as_instanceof_cause())
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user