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.
|
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. |
|
------------ |
|
""") |
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?
Code of Conduct
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.jsonbecame 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.airflow/airflow-core/src/airflow/migrations/versions/0055_3_0_0_remove_pickled_data_from_dagrun_table.py
Lines 53 to 61 in cfdf63e
airflow/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dag_run.py
Line 76 in cfdf63e
What you think should happen instead?
No response
How to reproduce
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?
Code of Conduct