mirror of
https://github.com/wassname/ray.git
synced 2026-08-19 12:30:27 +08:00
Add actor.__ray_kill__() to terminate actors immediately (#6523)
This commit is contained in:
@@ -1034,6 +1034,14 @@ cdef class CoreWorker:
|
||||
|
||||
return VectorToObjectIDs(return_ids)
|
||||
|
||||
def kill_actor(self, ActorID actor_id):
|
||||
cdef:
|
||||
CActorID c_actor_id = actor_id.native()
|
||||
|
||||
with nogil:
|
||||
check_status(self.core_worker.get().KillActor(
|
||||
c_actor_id))
|
||||
|
||||
def resource_ids(self):
|
||||
cdef:
|
||||
ResourceMappingType resource_mapping = (
|
||||
|
||||
Reference in New Issue
Block a user