Skip to content

Figure out airflow 2 to 3 database migration path #1733

@shelleydoljack

Description

@shelleydoljack

From the documentation it is suggested to run airflow db clean on your database before migrating to airflow 3. Should we add a deploy task that does airflow db clean whenever we deploy or just add it as a task to be run whenever?

According to the docs we should also run airflow dags reserialize on our old airflow instance prior to upgrading to airflow 3.

In the airflow-init section for docker compose, we can add _AIRFLOW_DB_MIGRATE: 'true' https://github.com/sul-dlss/rialto-airflow/blob/e80a965de3631da3999d2fa33d40dbe64428adb9/compose.prod.yaml#L258 in order to apply the database changes for airflow 3 when upgrading.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions