Fix failure to propagate error message. (#479)

This commit is contained in:
Robert Nishihara
2017-04-23 16:12:25 -07:00
committed by Philipp Moritz
parent a67a107e0e
commit 3a2eb1467b
+5 -1
View File
@@ -1871,7 +1871,11 @@ def main_loop(worker=global_worker):
traceback_str = format_error_message(traceback.format_exc())
else:
# The error occurred before the task execution.
traceback_str = None
if isinstance(e, RayGetError) or isinstance(e, RayGetArgumentError):
# In this case, getting the task arguments failed.
traceback_str = None
else:
traceback_str = traceback.format_exc()
failure_object = RayTaskError(function_name, e, traceback_str)
failure_objects = [failure_object for _ in range(len(return_object_ids))]
store_outputs_in_objstore(return_object_ids, failure_objects, worker)