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

Fix reducing mapped length of a mapped task at runtime after a clear #25531

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

ephraimbuddy
Copy link
Contributor

The previous fix on task immutability after a run did not fix a case where the task was removed at runtime when the literal is dynamic. This PR addreses it

There's still a case which I haven't figured out yet. Reducing the length thereby marking the task instance as removed and then increasing the length to equal the original length or more. This still leaves the removed task instance as removed

airflow/models/dagrun.py Outdated Show resolved Hide resolved
tests/models/test_dagrun.py Outdated Show resolved Hide resolved
airflow/models/dagrun.py Outdated Show resolved Hide resolved
The previous fix on task immutability after a run did not fix a case where the task was removed at runtime when the literal is dynamic. This PR addreses it
@ephraimbuddy ephraimbuddy requested a review from ashb August 4, 2022 21:12
@ephraimbuddy ephraimbuddy merged commit d3028ad into apache:main Aug 5, 2022
@ephraimbuddy ephraimbuddy deleted the fix-dynamic-task-immutability branch August 5, 2022 09:30
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Aug 15, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.4 milestone Aug 15, 2022
ephraimbuddy added a commit that referenced this pull request Aug 15, 2022
…25531)

The previous fix on task immutability after a run did not fix a case where the task was removed at runtime when the literal is dynamic. This PR addreses it

(cherry picked from commit d3028ad)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants