[Dashboard] Collecting worker stats in node manager and implement webui display in the backend (#6574)

This commit is contained in:
Yunzhi Zhang
2019-12-22 17:50:23 -08:00
committed by Philipp Moritz
parent c5f141013b
commit bac6f3b61e
13 changed files with 163 additions and 10 deletions
+15
View File
@@ -1412,6 +1412,21 @@ def register_custom_serializer(cls,
class_id=class_id)
def show_in_webui(message):
"""Display message in dashboard.
Display message for the current task or actor in the dashboard.
For example, this can be used to display the status of a long-running
computation.
Args:
message (str): Message to be displayed.
"""
worker = global_worker
worker.check_connected()
worker.core_worker.set_webui_display(message.encode())
def get(object_ids, timeout=None):
"""Get a remote object or a list of remote objects from the object store.