mirror of
https://github.com/wassname/ray.git
synced 2026-08-19 12:30:27 +08:00
implement distributed qr (#30)
This commit is contained in:
committed by
Philipp Moritz
parent
bffae5a80e
commit
37ac8faae5
@@ -99,10 +99,10 @@ def distributed(arg_types, return_types, worker=global_worker):
|
||||
def distributed_decorator(func):
|
||||
def func_executor(arguments):
|
||||
"""This is what gets executed remotely on a worker after a distributed function is scheduled by the scheduler."""
|
||||
print "Calling function {} with arguments {}".format(func.__name__, arguments)
|
||||
print "Calling function {}".format(func.__name__)
|
||||
result = func(*arguments)
|
||||
check_return_values(func_call, result) # throws an exception if result is invalid
|
||||
print "Finished executing function {} with arguments {}".format(func.__name__, arguments)
|
||||
print "Finished executing function {}".format(func.__name__)
|
||||
return result
|
||||
def func_call(*args):
|
||||
"""This is what gets run immediately when a worker calls a distributed function."""
|
||||
|
||||
Reference in New Issue
Block a user