mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 07:34:30 +08:00
Release gil when doing ray.wait. (#4190)
This commit is contained in:
committed by
Philipp Moritz
parent
484708d44d
commit
9c5fdbb63c
@@ -263,9 +263,11 @@ cdef class RayletClient:
|
||||
WaitResultPair result
|
||||
c_vector[CObjectID] wait_ids
|
||||
wait_ids = ObjectIDsToVector(object_ids)
|
||||
check_status(self.client.get().Wait(wait_ids, num_returns,
|
||||
timeout_milliseconds, wait_local,
|
||||
current_task_id.data, &result))
|
||||
with nogil:
|
||||
check_status(self.client.get().Wait(wait_ids, num_returns,
|
||||
timeout_milliseconds,
|
||||
wait_local,
|
||||
current_task_id.data, &result))
|
||||
return (VectorToObjectIDs(result.first),
|
||||
VectorToObjectIDs(result.second))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user