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

Refactor DR.task_instance_scheduling_decisions #24774

Merged
merged 1 commit into from
Jul 2, 2022

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Jul 1, 2022

I moved the part that sets ti.task from _find_missing_task_indexes out to task_instance_scheduling_decisions. When tracing the code around here, it was difficult for me to realize the inner _find function actually modifies the task attribute. This makes things more obvious to read.

Also added some simple type hints.

I moved the part that sets 'ti.task' from _find_missing_task_indexes
out to task_instance_scheduling_decisions. When tracing the code around
here, it was difficult for me to realize the inner _find function
actually modifies the 'task' attribute. This makes things more obvious
to read.

Also added some simple type hints.
@uranusjr uranusjr force-pushed the dag-run-task-population-refactor branch from e46f030 to f5f4356 Compare July 1, 2022 08:07
@uranusjr uranusjr merged commit 5d5d62e into apache:main Jul 2, 2022
@uranusjr uranusjr deleted the dag-run-task-population-refactor branch July 2, 2022 00:06
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Aug 12, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.3.4 milestone Aug 15, 2022
ephraimbuddy pushed a commit that referenced this pull request Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants