mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 05:17:38 +08:00
Get failed worker information (#114)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user