Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template support for external_task_ids. #22809

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

tirkarthi
Copy link
Contributor

When external_task_id is passed as a template directly setting it as a list external_task_ids will result in logging and using unrendered value. Set the external_task_ids with value from external_task_id if external_task_ids was None initially so that the rendered value from external_task_id is used.

closes: #22782
related: #22782

@boring-cyborg boring-cyborg bot added the area:core-operators Operators, Sensors and hooks within Core Airflow label Apr 7, 2022
@ferruzzi
Copy link
Contributor

ferruzzi commented Apr 8, 2022

LGTM 👍

@tirkarthi tirkarthi changed the title Fix setting external_task_ids when external_task_id is a template. Add template support for external_task_ids. Apr 13, 2022
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Apr 13, 2022
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@eladkal eladkal added this to the Airflow 2.3.0 milestone Apr 13, 2022
@potiuk potiuk merged commit 7331eef into apache:main Apr 13, 2022
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core-operators Operators, Sensors and hooks within Core Airflow full tests needed We need to run full set of tests for this PR to merge type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExternalTaskSensor does not properly expand templates in external_task_id(s)
6 participants