From fbea1ece2e9354deab89e2f05f39e0efec4c0336 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sat, 12 Jan 2019 07:25:40 -0800 Subject: [PATCH] Clear new actor handle list after submitting task. (#3755) --- python/ray/actor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/ray/actor.py b/python/ray/actor.py index 5d3d67baa..dee308f0d 100644 --- a/python/ray/actor.py +++ b/python/ray/actor.py @@ -598,6 +598,9 @@ class ActorHandle(object): # The last object returned is the dummy object that should be # passed in to the next actor method. Do not return it to the user. self._ray_actor_cursor = object_ids.pop() + # We have notified the backend of the new actor handles to expect + # since the last task was submitted, so clear the list. + self._ray_new_actor_handles = [] if len(object_ids) == 1: object_ids = object_ids[0]