Remove experimental.NoReturn (#7475)

This commit is contained in:
Edward Oakes
2020-03-09 11:09:36 -07:00
committed by GitHub
parent 27b4ffa98e
commit b4e2d5317e
3 changed files with 3 additions and 26 deletions
+2 -4
View File
@@ -966,10 +966,8 @@ Status CoreWorker::AllocateReturnObjects(
object_already_exists = !data_buffer;
}
}
// Leave the return object as a nullptr if there is no data or metadata.
// This allows the caller to prevent the core worker from storing an output
// (e.g., to support ray.experimental.no_return.NoReturn).
if (!object_already_exists && (data_buffer || metadatas[i])) {
// Leave the return object as a nullptr if the object already exists.
if (!object_already_exists) {
return_objects->at(i) =
std::make_shared<RayObject>(data_buffer, metadatas[i], contained_object_ids[i]);
}