nuclearpinguin commented on a change in pull request #6820: [AIRFLOW-6255] 
Redis Hook Refactor
URL: https://github.com/apache/airflow/pull/6820#discussion_r357936768
 
 

 ##########
 File path: airflow/contrib/operators/redis_publish_operator.py
 ##########
 @@ -61,6 +61,6 @@ def execute(self, context):
 
         self.log.info('Sending messsage %s to Redis on channel %s', 
self.message, self.channel)
 
-        result = redis_hook.get_conn().publish(channel=self.channel, 
message=self.message)
+        result = redis_hook.publish_message(channel=self.channel, 
message=self.message)
 
 Review comment:
   The result will always be `None` because the hook method does not return 
anything 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to