[Dashboard] Display actor task execution info (#6705)

Co-authored-by: Philipp Moritz <pcmoritz@gmail.com>
This commit is contained in:
Yunzhi Zhang
2020-01-22 22:33:55 -08:00
committed by Philipp Moritz
co-authored by Philipp Moritz
parent ae9a3a2237
commit 0834bda8c1
12 changed files with 320 additions and 36 deletions
+10
View File
@@ -633,6 +633,13 @@ cdef execute_task(
with core_worker.profile_event(b"task:deserialize_arguments"):
args, kwargs = deserialize_args(c_args, c_arg_reference_ids)
if (<int>task_type == <int>TASK_TYPE_ACTOR_CREATION_TASK):
actor = worker.actors[core_worker.get_actor_id()]
class_name = actor.__class__.__name__
actor_title = "{}({}, {})".format(
class_name, repr(args), repr(kwargs))
core_worker.set_actor_title(actor_title.encode("utf-8"))
# Execute the task.
with ray.worker._changeproctitle(title, next_title):
with core_worker.profile_event(b"task:execute"):
@@ -810,6 +817,9 @@ cdef class CoreWorker:
def set_webui_display(self, message):
self.core_worker.get().SetWebuiDisplay(message)
def set_actor_title(self, title):
self.core_worker.get().SetActorTitle(title)
def get_objects(self, object_ids, TaskID current_task_id,
int64_t timeout_ms=-1):
cdef: