mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 22:34:24 +08:00
Use ray.kill() in multiprocessing.Pool (#7409)
This commit is contained in:
@@ -660,7 +660,7 @@ class Pool:
|
||||
if not self._closed:
|
||||
self.close()
|
||||
for actor, _ in self._actor_pool:
|
||||
actor.__ray_kill__()
|
||||
ray.kill(actor)
|
||||
|
||||
def join(self):
|
||||
"""Wait for the actors in a closed pool to exit.
|
||||
|
||||
Reference in New Issue
Block a user