Upgrading
dte is in beta. Read the release notes before every upgrade.
Before upgrading in production
- Back up the database
DTE_DATABASE_URLpoints at (itsdteschema). If that's Airflow's metadata database, back that up. - Back up local files used by any
fsconnection.
In your own Airflow
On every component, with the same constraints file you installed with:
bash
pip install --upgrade dte-airflow --constraint constraints.txtIn a Docker image, bump the version and rebuild. Then migrate once, with DTE_DATABASE_URL set, and restart Airflow:
bash
dte db upgradeThe api-server serves the UI bundle from the installed package, so reload the page.
Docker Compose stack
bash
cd dte-airflow
git pull
docker compose up -d --buildThe airflow-init service runs airflow db migrate and dte db upgrade before the others start.
Rolling back
- Stop Airflow.
- Restore the database backup.
- Install the previous version (
pip install dte-airflow==<previous> --constraint constraints.txt), or for compose,git checkout <previous-tag>anddocker compose up -d --build.