Skip to content

Commit

Permalink
Clear new actor handle list after submitting task. (ray-project#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertnishihara authored and raulchen committed Jan 12, 2019
1 parent 0a556dc commit fbea1ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/ray/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ def _actor_method_call(self,
# 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]
Expand Down

0 comments on commit fbea1ec

Please sign in to comment.