Skip to main content

Apache Airflow Upgrade Check

PyPI version License PyPI - Python Version PyPI - Downloads Twitter Follow Slack Status

This package aims to easy the upgrade journey from Apache Airflow 1.10 to 2.0.

While we have put a lot of effort in to making this upgrade as painless as possible, with many changes providing upgrade path (where the old code continues to work and prints out a deprecation warning) there were unfortunately some breaking changes where we couldn't provide a compatibility shim.

The recommended upgrade path to get to Airflow 2.0.0 is to first upgrade to the latest release in the 1.10 series (at the time of writing: 1.10.13) and to then run this script.

pip install apache-airflow-upgrade-check
airflow upgrade_check

This will then print out a number of action items that you should follow before upgrading to 2.0.0 or above.

The exit code of the command will be 0 (success) if no problems are reported, or 1 otherwise.

For example:

============================================= STATUS =============================================

Legacy UI is deprecated by default......................................................SUCCESS
Users must set a kubernetes.pod_template_file value.....................................FAIL
Changes in import paths of hooks, operators, sensors and others.........................FAIL
Remove airflow.AirflowMacroPlugin class.................................................SUCCESS
Jinja Template Variables cannot be undefined............................................SUCCESS
Fernet is enabled by default............................................................FAIL
Logging configuration has been moved to new section.....................................SUCCESS
Connection.conn_id is not unique........................................................SUCCESS
GCP service account key deprecation.....................................................SUCCESS
Users must delete deprecated configs for KubernetesExecutor.............................FAIL
Changes in import path of remote task handlers..........................................SUCCESS
Chain between DAG and operator not allowed..............................................SUCCESS
SendGrid email uses old airflow.contrib module..........................................SUCCESS
Connection.conn_type is not nullable....................................................SUCCESS
Found 16 problems.

======================================== RECOMMENDATIONS =========================================

Users must set a kubernetes.pod_template_file value
---------------------------------------------------
In Airflow 2.0, KubernetesExecutor Users need to set a pod_template_file as a base
value for all pods launched by the KubernetesExecutor


Problems:

  1.  Please create a pod_template_file by running `airflow generate_pod_template`.
This will generate a pod using your aiflow.cfg settings

...

Metadata

Release files for apache-airflow-upgrade-check 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apache-airflow-upgrade-check 1.0.0
File Size Uploaded Provenance Actions
apache-airflow-upgrade-check-1.0.0.tar.gz 28.4 kB Without provenance Details for apache-airflow-upgrade-check-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apache-airflow-upgrade-check 1.0.0
File Interpreter ABI Platform Actions
apache_airflow_upgrade_check-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for apache_airflow_upgrade_check-1.0.0-py2.py3-none-any.whl

Total release size: 72.6 kB

Release files / apache-airflow-upgrade-check-1.0.0.tar.gz

Download URL apache-airflow-upgrade-check-1.0.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
36c86d01b8e86ca95022c2137f45ac6148d0600de20cf38bc06e980009ea4c34
BLAKE2b-256 checksum
How to use checksums
0193a77695006e5f75f66925b13e25014b0b0c71c39c82eb788dc86a34271f0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7

Release files / apache_airflow_upgrade_check-1.0.0-py2.py3-none-any.whl

Download URL apache_airflow_upgrade_check-1.0.0-py2.py3-none-any.whl
Size 44.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
824ae7775e74ca1ae0722ec7cb0ba782eda8a11e5776cd68c4d161059e56d068
BLAKE2b-256 checksum
How to use checksums
494778970f60a9df509d1cc551eb135098c6b95e48ede4126b811fbacf4a86c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.7

Security for apache-airflow-upgrade-check 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page