Skip to content

Commit

Permalink
Merge pull request ray-project#216 from amplab/exc
Browse files Browse the repository at this point in the history
catch type checking exceptions
  • Loading branch information
mehrdadn authored Jul 6, 2016
2 parents 5873831 + e1e09d3 commit 1f4ab05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/ray/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ def main_loop(worker=global_worker):
ray.lib.start_worker_service(worker.handle)
def process_task(task): # wrapping these lines in a function should cause the local variables to go out of scope more quickly, which is useful for inspecting reference counts
func_name, args, return_objrefs = serialization.deserialize_task(worker.handle, task)
arguments = get_arguments_for_execution(worker.functions[func_name], args, worker) # get args from objstore
try:
arguments = get_arguments_for_execution(worker.functions[func_name], args, worker) # get args from objstore
outputs = worker.functions[func_name].executor(arguments) # execute the function
if len(return_objrefs) == 1:
outputs = (outputs,)
Expand Down

0 comments on commit 1f4ab05

Please sign in to comment.