Repository navigation
Add redis_conn_id to RedisPublishOperator template_fields - #72883
Merged
vincbeck merged 2 commits intoSep 10, 2026
Merged
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
vincbeck
reviewed
Sep 10, 2026
keemgdeok
force-pushed
the
add-redis-conn-id-template-field
branch
from
September 10, 2026 13:29
3351a73 to
15eb0af
Compare
vincbeck
approved these changes
Sep 10, 2026
This was referenced Sep 12, 2026
vincbeck
pushed a commit
that referenced
this pull request
Sep 14, 2026
…elds (#73018) Both sensors take `redis_conn_id` and use it to build the hook, but neither lists it in `template_fields`, so a Jinja expression passed as the connection id is never rendered and reaches `RedisHook` verbatim: sensor = RedisKeySensor(key="k", redis_conn_id="redis_{{ ds }}", ...) sensor.render_template_fields({"ds": "2017-01-01"}) sensor.redis_conn_id # 'redis_{{ ds }}' before this change `RedisPublishOperator` got the same fix in #72883. These two sensors are the only other classes in the provider that declare `template_fields`, so this completes the redis slice of #35259. No test, following the review on #72883 where the equivalent test was removed before merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RedisPublishOperatorcurrently does not includeredis_conn_idintemplate_fields, so Jinja templates used for Redis connection IDs are notrendered.
This PR adds
redis_conn_idtoRedisPublishOperator.template_fieldsand marksit as templated in the operator documentation.
related: #35259
Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-6 and GPT-5) following the guidelines
Drafted-by: Codex (GPT-6 and GPT-5) (no human review before posting)