Reset signal counters when a task finishes (#4173)

This commit is contained in:
Ion
2019-02-28 15:15:03 -08:00
committed by Philipp Moritz
parent 4dc683d39e
commit 88e14feb53
3 changed files with 24 additions and 1 deletions
+3
View File
@@ -965,6 +965,9 @@ class Worker(object):
# actor. Because the following tasks should all have the
# same driver id.
self.task_driver_id = DriverID.nil()
# Reset signal counters so that the next task can get
# all past signals.
ray_signal.reset()
# Increase the task execution counter.
self.function_actor_manager.increase_task_counter(