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

Crerate TI context with data interval compat layer #19148

Merged

Conversation

uranusjr
Copy link
Member

Fix #19143.

Old DAG runs created prior to 2.2 do not have a concrete data interval, but we still want to be able to add things to them with a consistent interface, so the context should use the compat layer instead of relying
on the database entry.

Old DAG runs created prior to 2.2 do not have a concrete data interval,
but we still want to be able to add things to them with a consistent
interface, so the context should use the compat layer instead of relying
on the database entry.
@uranusjr uranusjr added the AIP-39 Timetables label Oct 22, 2021
@uranusjr uranusjr added this to the Airflow 2.2.1 milestone Oct 22, 2021
@uranusjr
Copy link
Member Author

Tentatively adding this to 2.2.1 since this is a regression in 2.2.0, and the fix should not introduce any risk.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Oct 22, 2021
@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.

@uranusjr uranusjr merged commit 1159133 into apache:main Oct 22, 2021
@uranusjr uranusjr deleted the aip-39-dag-run-data-interval-backfill branch October 22, 2021 06:50
jedcunningham pushed a commit that referenced this pull request Oct 22, 2021
jedcunningham pushed a commit that referenced this pull request Oct 24, 2021
jedcunningham pushed a commit to astronomer/airflow that referenced this pull request Oct 26, 2021
sharon2719 pushed a commit to sharon2719/airflow that referenced this pull request Oct 27, 2021
jedcunningham pushed a commit to astronomer/airflow that referenced this pull request Oct 27, 2021
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-39 Timetables 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.

TypeError: unsupported operand type(s) for +=: 'NoneType' and 'datetime.timedelta'
3 participants