mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 11:01:06 +08:00
Minimal implementation of direct task calls (#6075)
This commit is contained in:
@@ -157,8 +157,7 @@ class SerializationContext(object):
|
||||
serialization_context)
|
||||
|
||||
def id_serializer(obj):
|
||||
if isinstance(obj,
|
||||
ray.ObjectID) and obj.is_direct_actor_type():
|
||||
if isinstance(obj, ray.ObjectID) and obj.is_direct_call_type():
|
||||
raise NotImplementedError(
|
||||
"Objects produced by direct actor calls cannot be "
|
||||
"passed to other tasks as arguments.")
|
||||
@@ -191,8 +190,7 @@ class SerializationContext(object):
|
||||
custom_deserializer=actor_handle_deserializer)
|
||||
|
||||
def id_serializer(obj):
|
||||
if isinstance(obj,
|
||||
ray.ObjectID) and obj.is_direct_actor_type():
|
||||
if isinstance(obj, ray.ObjectID) and obj.is_direct_call_type():
|
||||
raise NotImplementedError(
|
||||
"Objects produced by direct actor calls cannot be "
|
||||
"passed to other tasks as arguments.")
|
||||
|
||||
Reference in New Issue
Block a user