-
Notifications
You must be signed in to change notification settings - Fork 16k
Closed
Labels
AIP-84Modern Rest APIModern Rest APIaffected_version:3.0Issues Reported for 3.0Issues Reported for 3.0affected_version:main_branchIssues Reported for main branchIssues Reported for main brancharea:APIAirflow's REST/HTTP APIAirflow's REST/HTTP APIarea:corekind:bugThis is a clearly a bugThis is a clearly a bug
Description
Apache Airflow version
3.0.0
If "Other Airflow 2 version" selected, which one?
No response
What happened?
As part of Airflow 2 to 3 migration we noticed dag_run.json became a JSON field. Since we don't need this in non-production we deleted the column and added new one with JSON type which is nullable as per the migration. But it's not nullable in the pydantic definition thus causing API error when a dagrun with null conf is present.
Lines 53 to 61 in cfdf63e
| if context.is_offline_mode(): | |
| print( | |
| dedent(""" | |
| ------------ | |
| -- WARNING: Unable to migrate the data in the 'conf' column while in offline mode! | |
| -- The 'conf' column will be set to NULL in offline mode. | |
| -- Avoid using offline mode if you need to retain 'conf' values. | |
| ------------ | |
| """) |
| conf: dict |
What you think should happen instead?
No response
How to reproduce
- Migrate from Airflow 2.10 to Airflow 3 through offline migration.
- Visit old dag runs list page.
Operating System
Ubuntu 20.04
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
AIP-84Modern Rest APIModern Rest APIaffected_version:3.0Issues Reported for 3.0Issues Reported for 3.0affected_version:main_branchIssues Reported for main branchIssues Reported for main brancharea:APIAirflow's REST/HTTP APIAirflow's REST/HTTP APIarea:corekind:bugThis is a clearly a bugThis is a clearly a bug