Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Apr 19, 2022

This resulted in the entire dag being copied over and over many times. For a task with 500 dags this takes the time of this function down from 60s(!) to just over 1s.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

This resulted in the _entire_ dag being copied over and over many times.
For a task with 500 dags this takes the time of this function down from
60s(!) to just over 1s.
@ashb ashb requested review from XD-DENG and kaxil as code owners April 19, 2022 14:49
@ashb
Copy link
Member Author

ashb commented Apr 19, 2022

This was a regression caused by adding the task_group (weakref) attribute to every task in #19965

Make it slightly more efficient
@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 19, 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.

@ashb ashb merged commit 5fca11e into apache:main Apr 19, 2022
@ashb ashb deleted the partial_subset_speedup branch April 19, 2022 16:25
@jedcunningham jedcunningham added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 25, 2022
@jedcunningham jedcunningham added this to the Airflow 2.3.0 milestone Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dynamic-task-mapping AIP-42 changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants