Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 5, 2023

The fix in #32984 moved redis hook to be initialized in a cached property but "subscription" call has been moved to the poke - which would cause multiple subscribe calls in regular mode of the sensor (i.e. not poke-reschedule mode).

This one fixes it by subscribing only once - when the cached property gets initialized.

Fixes: #33138


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

The fix in apache#32984 moved redis hook to be initialized in a
cached property but "subscription" call has been moved to the
poke - which would cause multiple subscribe calls in regular mode
of the sensor (i.e. not poke-reschedule mode).

This one fixes it by subscribing only once - when the cached
property gets initialized.

Fixes: apache#33138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move redis subscribe to poke() method in Redis Sensor (#32984): @potiuk

3 participants