Write computation graph to file

This commit is contained in:
Philipp Moritz
2016-06-27 12:16:59 -07:00
parent fb6c74ecab
commit 7af0f1b221
13 changed files with 96 additions and 41 deletions
+2 -1
View File
@@ -8,5 +8,6 @@ PYTHON_MODE = 3
import libraylib as lib
import serialization
from worker import scheduler_info, task_info, register_module, connect, disconnect, get, put, remote
from worker import scheduler_info, dump_computation_graph, task_info, register_module, connect, disconnect, get, put, remote
from libraylib import ObjRef
import internal
View File
+3
View File
@@ -143,6 +143,9 @@ def print_task_info(task_data, mode):
def scheduler_info(worker=global_worker):
return ray.lib.scheduler_info(worker.handle);
def dump_computation_graph(file_name, worker=global_worker):
ray.lib.dump_computation_graph(worker.handle, file_name)
def task_info(worker=global_worker):
"""Tell the scheduler to return task information. Currently includes a list of all failed tasks since the start of the cluster."""
return ray.lib.task_info(worker.handle);