hussein-awala commented on code in PR #32984:
URL: https://github.com/apache/airflow/pull/32984#discussion_r1279953988


##########
airflow/providers/redis/sensors/redis_pub_sub.py:
##########
@@ -42,7 +42,7 @@ def __init__(self, *, channels: list[str] | str, 
redis_conn_id: str, **kwargs) -
         self.channels = channels
         self.redis_conn_id = redis_conn_id
         self.pubsub = 
RedisHook(redis_conn_id=self.redis_conn_id).get_conn().pubsub()

Review Comment:
   > Would the intent just be to remove a method call from the init stage?
   
   yes, currently the `RedisHook` is initiated on each time the 
DagFileProcessor parse the dag file.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to