-
Notifications
You must be signed in to change notification settings - Fork 15.9k
fix: allow mapped tasks to accept zero-length inputs on rerun #56162
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
Merged
jason810496
merged 5 commits into
apache:main
from
kevinhongzl:fix-error-retry-zero-length-mapped-tasks
Oct 3, 2025
Merged
fix: allow mapped tasks to accept zero-length inputs on rerun #56162
jason810496
merged 5 commits into
apache:main
from
kevinhongzl:fix-error-retry-zero-length-mapped-tasks
Oct 3, 2025
Conversation
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
7303b8e to
dbb57e2
Compare
d01d153 to
8fb7b8e
Compare
jason810496
reviewed
Sep 29, 2025
Member
jason810496
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Nice catch!
25fc322 to
d9ff37f
Compare
jason810496
approved these changes
Sep 30, 2025
Member
jason810496
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on my side.
d9ff37f to
949740d
Compare
949740d to
e9fa5e2
Compare
sc250072
pushed a commit
to Teradata/airflow
that referenced
this pull request
Oct 3, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 4, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 5, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 5, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 7, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 8, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 9, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 10, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 11, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 12, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
dabla
pushed a commit
to dabla/airflow
that referenced
this pull request
Oct 12, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
potiuk
added a commit
that referenced
this pull request
Oct 13, 2025
* Error message improvied * Error messages of bteq improved * Bump ruff to 0.13.3 and prek to 0.2.3 (#56355) * fix: allow mapped tasks to accept zero-length inputs on rerun (#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax * Chart gitsync vars (#56245) * make the variable name in .Values.dags.gitSync.credentials secret dependent on the GitSync version * update gitsync tests * Update provider's metadata (#56357) * Fix install_java.sh (#56211) Co-authored-by: Ulada Zakharava <[email protected]> * Add new PL translations. (#56359) --------- Co-authored-by: Amogh Desai <[email protected]> Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]> Co-authored-by: Kirill Romanikhin <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: VladaZakharova <[email protected]> Co-authored-by: Ulada Zakharava <[email protected]>
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 14, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 14, 2025
* Error message improvied * Error messages of bteq improved * Bump ruff to 0.13.3 and prek to 0.2.3 (apache#56355) * fix: allow mapped tasks to accept zero-length inputs on rerun (apache#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax * Chart gitsync vars (apache#56245) * make the variable name in .Values.dags.gitSync.credentials secret dependent on the GitSync version * update gitsync tests * Update provider's metadata (apache#56357) * Fix install_java.sh (apache#56211) Co-authored-by: Ulada Zakharava <[email protected]> * Add new PL translations. (apache#56359) --------- Co-authored-by: Amogh Desai <[email protected]> Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]> Co-authored-by: Kirill Romanikhin <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: VladaZakharova <[email protected]> Co-authored-by: Ulada Zakharava <[email protected]>
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 15, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 15, 2025
* Error message improvied * Error messages of bteq improved * Bump ruff to 0.13.3 and prek to 0.2.3 (apache#56355) * fix: allow mapped tasks to accept zero-length inputs on rerun (apache#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax * Chart gitsync vars (apache#56245) * make the variable name in .Values.dags.gitSync.credentials secret dependent on the GitSync version * update gitsync tests * Update provider's metadata (apache#56357) * Fix install_java.sh (apache#56211) Co-authored-by: Ulada Zakharava <[email protected]> * Add new PL translations. (apache#56359) --------- Co-authored-by: Amogh Desai <[email protected]> Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]> Co-authored-by: Kirill Romanikhin <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: VladaZakharova <[email protected]> Co-authored-by: Ulada Zakharava <[email protected]>
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 17, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 17, 2025
* Error message improvied * Error messages of bteq improved * Bump ruff to 0.13.3 and prek to 0.2.3 (apache#56355) * fix: allow mapped tasks to accept zero-length inputs on rerun (apache#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax * Chart gitsync vars (apache#56245) * make the variable name in .Values.dags.gitSync.credentials secret dependent on the GitSync version * update gitsync tests * Update provider's metadata (apache#56357) * Fix install_java.sh (apache#56211) Co-authored-by: Ulada Zakharava <[email protected]> * Add new PL translations. (apache#56359) --------- Co-authored-by: Amogh Desai <[email protected]> Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]> Co-authored-by: Kirill Romanikhin <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: VladaZakharova <[email protected]> Co-authored-by: Ulada Zakharava <[email protected]>
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 19, 2025
…#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 19, 2025
* Error message improvied * Error messages of bteq improved * Bump ruff to 0.13.3 and prek to 0.2.3 (apache#56355) * fix: allow mapped tasks to accept zero-length inputs on rerun (apache#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax * Chart gitsync vars (apache#56245) * make the variable name in .Values.dags.gitSync.credentials secret dependent on the GitSync version * update gitsync tests * Update provider's metadata (apache#56357) * Fix install_java.sh (apache#56211) Co-authored-by: Ulada Zakharava <[email protected]> * Add new PL translations. (apache#56359) --------- Co-authored-by: Amogh Desai <[email protected]> Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]> Co-authored-by: Kirill Romanikhin <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: VladaZakharova <[email protected]> Co-authored-by: Ulada Zakharava <[email protected]>
kaxil
pushed a commit
that referenced
this pull request
Oct 21, 2025
* fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax (cherry picked from commit 6d3e841)
TyrellHaywood
pushed a commit
to TyrellHaywood/airflow
that referenced
this pull request
Oct 22, 2025
* Error message improvied * Error messages of bteq improved * Bump ruff to 0.13.3 and prek to 0.2.3 (apache#56355) * fix: allow mapped tasks to accept zero-length inputs on rerun (apache#56162) * fix: allow mapped tasks to accept zero-length inputs on rerun * fix: add test for rerun args of different length * chore: revise comments to align with the changes * chore: add comments before the task state check * fix: replace legacy query syntax * Chart gitsync vars (apache#56245) * make the variable name in .Values.dags.gitSync.credentials secret dependent on the GitSync version * update gitsync tests * Update provider's metadata (apache#56357) * Fix install_java.sh (apache#56211) Co-authored-by: Ulada Zakharava <[email protected]> * Add new PL translations. (apache#56359) --------- Co-authored-by: Amogh Desai <[email protected]> Co-authored-by: Zhen-Lun (Kevin) Hong <[email protected]> Co-authored-by: Kirill Romanikhin <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: VladaZakharova <[email protected]> Co-authored-by: Ulada Zakharava <[email protected]>
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.
closes: #43214
Why this change
This PR fixes the bug where task mapping fails to handle zero-length inputs during a rerun. This occured because tasks with map_index = 0 are incorrectly added to
ready_tisin_get_ready_tis()even though_revise_map_indexes_if_mapped()had marked them as REMOVED.Solution
_revise_map_indexes_if_mapped()to prevent incorrect inclusion^ 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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.