mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 04:27:27 +08:00
[redis-py] change redis-py deprecated hmset usage to hset (#11776)
This commit is contained in:
@@ -139,8 +139,9 @@ class FunctionActorManager:
|
||||
"remote function", self._worker)
|
||||
key = (b"RemoteFunction:" + self._worker.current_job_id.binary() + b":"
|
||||
+ remote_function._function_descriptor.function_id.binary())
|
||||
self._worker.redis_client.hmset(
|
||||
key, {
|
||||
self._worker.redis_client.hset(
|
||||
key,
|
||||
mapping={
|
||||
"job_id": self._worker.current_job_id.binary(),
|
||||
"function_id": remote_function._function_descriptor.
|
||||
function_id.binary(),
|
||||
@@ -333,7 +334,7 @@ class FunctionActorManager:
|
||||
"""
|
||||
# We set the driver ID here because it may not have been available when
|
||||
# the actor class was defined.
|
||||
self._worker.redis_client.hmset(key, actor_class_info)
|
||||
self._worker.redis_client.hset(key, mapping=actor_class_info)
|
||||
self._worker.redis_client.rpush("Exports", key)
|
||||
|
||||
def export_actor_class(self, Class, actor_creation_function_descriptor,
|
||||
|
||||
Reference in New Issue
Block a user