Get failed worker information (#114)

This commit is contained in:
mehrdadn
2016-06-18 01:01:48 +03:00
committed by Philipp Moritz
parent 1b68e10f17
commit 0e5feecd65
9 changed files with 104 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import libraylib as lib
import serialization
from worker import scheduler_info, register_module, connect, disconnect, pull, push, remote
from worker import scheduler_info, task_info, register_module, connect, disconnect, pull, push, remote
from libraylib import ObjRef
+4
View File
@@ -56,6 +56,10 @@ global_worker = Worker()
def scheduler_info(worker=global_worker):
return ray.lib.scheduler_info(worker.handle);
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);
def register_module(module, recursive=False, worker=global_worker):
print "registering functions in module {}.".format(module.__name__)
for name in dir(module):