mirror of
https://github.com/wassname/ray.git
synced 2026-07-18 12:40:56 +08:00
[Object Spilling] Fusion small objects (#12087)
This commit is contained in:
@@ -611,17 +611,19 @@ cdef c_vector[c_string] spill_objects_handler(
|
||||
|
||||
|
||||
cdef void restore_spilled_objects_handler(
|
||||
const c_vector[CObjectID]& object_ids_to_restore,
|
||||
const c_vector[c_string]& object_urls) nogil:
|
||||
with gil:
|
||||
urls = []
|
||||
size = object_urls.size()
|
||||
for i in range(size):
|
||||
urls.append(object_urls[i])
|
||||
object_refs = VectorToObjectRefs(object_ids_to_restore)
|
||||
try:
|
||||
with ray.worker._changeproctitle(
|
||||
ray_constants.WORKER_PROCESS_TYPE_RESTORE_WORKER,
|
||||
ray_constants.WORKER_PROCESS_TYPE_RESTORE_WORKER_IDLE):
|
||||
external_storage.restore_spilled_objects(urls)
|
||||
external_storage.restore_spilled_objects(object_refs, urls)
|
||||
except Exception:
|
||||
exception_str = (
|
||||
"An unexpected internal error occurred while the IO worker "
|
||||
|
||||
Reference in New Issue
Block a user