[redis-py] change redis-py deprecated hmset usage to hset (#11776)

This commit is contained in:
Akash Patel
2020-11-04 06:23:02 +00:00
committed by GitHub
parent 7248d5f4ae
commit b7531fb4f5
5 changed files with 11 additions and 9 deletions
+4 -3
View File
@@ -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,