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

 ##########
 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:
   i've changed publish_message to return int (as mentioned above) so now it 
makes sense to capture result

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to