potiuk commented on code in PR #32984:
URL: https://github.com/apache/airflow/pull/32984#discussion_r1279956787
##########
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:
Yeah. Actually cached_property is best. Check it out.
--
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]