mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 02:20:40 +08:00
Raise exception when getting the task results of workers that died (#1224)
* wip * with test * add timeout * also add test for f * remove on cleanup * update * wip * fix tests * mark actor removed in redis * clang-format * fix bug when no-inprogress tasks * try to set task status done * Add comment.
This commit is contained in:
committed by
Robert Nishihara
parent
28f1e12940
commit
9233e496cc
@@ -377,6 +377,14 @@ class Worker(object):
|
||||
timeout,
|
||||
self.serialization_context)
|
||||
return results
|
||||
except pyarrow.lib.ArrowInvalid as e:
|
||||
# TODO(ekl): the local scheduler could include relevant
|
||||
# metadata in the task kill case for a better error message
|
||||
invalid_error = RayTaskError(
|
||||
"<unknown>", None,
|
||||
"Invalid return value: likely worker died or was killed "
|
||||
"while executing the task.")
|
||||
return [invalid_error] * len(object_ids)
|
||||
except pyarrow.DeserializationCallbackError as e:
|
||||
# Wait a little bit for the import thread to import the class.
|
||||
# If we currently have the worker lock, we need to release it
|
||||
|
||||
Reference in New Issue
Block a user