To more strongly embrace the success and growing customer preference for OSS solutions, Cloud Composer is evolving to become Managed Service for Apache Airflow. This name change provides improved customer understanding of our portfolio while reinforcing our commitment to being the most open cloud ecosystem.
This page describes how to upgrade your environment to a new
Airflow
version.
About upgrade operations
In Managed Airflow (Gen 3), you don't manage the Managed Airflow version
of your environment:
Managed Airflow automatically upgrades the infrastructure
components of your environment. These components are related to
Managed Airflow functionality and do not change how Airflow works
or how your Airflow DAGs are executed.
Managed Airflow doesn't automatically upgrade Airflow version
and build, Airflow components, or components closely related to Airflow
workloads. They are not changed when the infrastructure components upgrade
automatically.
For example, you can use the same version and build of Airflow for several
months, without performing any upgrades, and your environment still receives
latest Managed Airflow updates, fixes, and improvements of the
environment's infrastructure components. When later you decide to move to a
new version or build of Airflow, you upgrade the Airflow version in your
environment.
About Airflow version upgrade
Your environment changes the version or build of Airflow in the following
way:
You control the Airflow version (and build) of your environment. You can
perform the Airflow version upgrade operation when you choose to switch
your environment to a different version of Airflow. For example, this might
happen if the current version and build of Airflow are
no longer supported.
Managed Airflow re-deploys your environment's Airflow components
using the specified Airflow version and build.
Managed Airflow applies Airflow configuration changes, such as
custom PyPI packages or Airflow configuration option overrides, if your
environment had them before the upgrade.
Managed Airflow updates the Airflow airflow_db connection to
point to the new Cloud SQL database.
Changing the Airflow version doesn't change how you connect to the resources
in your environment, such as the URL of your environment's bucket, or
Airflow web server.
Automatic infrastructure upgrade operations run periodically during
maintenance windows specified for the environment.
It is not possible to disable automatic infrastructure upgrades in
Managed Airflow (Gen 3). You can control the time periods when automatic upgrades
can run by specifying custom maintenance windows for your environment.
This operation is visible in Google Cloud console and
environment's logs, like any other long-running operation. While the
operation is running, you can't start other operations at the environment
level (but you can still run Airflow DAGs).
In some cases, automatic infrastructure upgrades can restart Airflow
components. During such restarts, Airflow workers are gracefully
terminated with a grace period of 24 hours. If you have tasks that need
more than 24 hours to complete, consider using deferrable operators.
An upgrade might result in a short period of unavailability for
environment's infrastructure components, such as environment monitoring.
Limitations of upgrade and rollback operations
Upgrade operations have the following limitations:
Managed Airflow releases are gradually
rolled out to all regions supported by Managed Airflow over
several days. The latest version from a release in progress might not be
available in your region yet.
In Managed Airflow (Gen 3), you can roll back an upgrade to an earlier
version or build of Airflow with the following limitations:
Rollbacks are supported for upgrades done from Airflow 3 versions, or
from Airflow 2 versions starting with the airflow-2.7.3-build.0 build.
Rollbacks are supported for upgrades done to target versions
airflow-2.11.1-build.20 or later, airflow-3.2.2-build.7 or later, and
airflow-3.3.1-build.3 or later.
You can start the rollback operation within 30 days of the upgrade. If
the target Airflow build is past its end of support date, it's still
possible to roll back to it. You can do skip-version rollbacks. If
you've upgraded more than once within 30 days, you can roll back to any
previously used version as long as it satisfies eligibility constraints.
The environment is in a RUNNING state when you start the
rollback.
You can't upgrade your environment if the Airflow database contains
more than 20 GB
of data. During an upgrade, a warning is shown if the Airflow database size
is more than 20
GB. In this case, perform the database maintenance to reduce
the database size.
If you use the XCom mechanism to transfer files, make sure that you
use it according to Airflow's guidelines.
Transferring big files or a large number of files using XCom impacts
Airflow database's performance and can lead to failures when loading
snapshots or upgrading your environment. Consider using alternatives such
as Cloud Storage to transfer large volumes of data.
Before you begin
We recommend to create a new snapshot of the
environment to be able to re-create the environment in case this is needed.
Your account must have a role that can trigger environment upgrade
operations. In addition, the service account of the environment must have a
role that has enough permissions to perform upgrade operations. For more
information, see Access control.
Check that your environment is up to date
Managed Airflow displays warnings when
your environment's Airflow build approaches its end of support date.
You can use these warnings to always keep your environment
supported.
Figure 1. A deprecation message is displayed on the Environment
details page
Managed Airflow keeps track of the
Airflow version and build
that your environment is based on. When it approaches the
end of support date,
you can see a warning in the list of environments and on the
Environment details page.
You can check if PyPI packages installed in your environment have any
conflicts with preinstalled packages in the new
Airflow version or build.
A successful check means that there are no conflicts in PyPI package
dependencies between the current and the specified version. However, an
upgrade operation might still not be successful because of other reasons.
This check verifies only PyPI package dependencies and doesn't inspect your DAG
source code. To check what needs to change in your environment's DAGs for a
selected image version, see
Check DAG compatibility with Managed Airflow Agent.
Check DAG compatibility with Managed Airflow Agent
Before upgrading your environment, you can run an agentic upgrade check in
the Google Cloud console to ask Managed Airflow Agent what changes are
required in your environment's DAGs to work with a selected
Airflow version or build.
The agentic upgrade check is read-only and is based on code inspection of
your DAG source code, supporting files in your environment's bucket (in the
/dags, /plugins, and /data folders), custom PyPI packages, and Airflow
configuration overrides. It doesn't modify your environment or DAG files,
doesn't run DAGs, shell commands, or Airflow CLI commands, and doesn't put
your environment into an updating state.
Managed Airflow Agent relies on your user account permissions. Make
sure that your user account has roles and permissions that allow you to
access DAG files and run an upgrade check.
Managed Airflow Agent creates a compatibility report in the Ask
agent panel. The report contains the following information:
The inspection result, stating whether your DAG code is compatible,
compatible with behavior changes, or requires code changes. Because this
assessment is based on static code inspection rather than parsing or
running DAGs, test your DAGs to confirm runtime compatibility.
The list of compatibility issues. Each finding includes the
filename, an explanation of the issue, and a suggested fix.
The list of imported modules, plugins, or custom PyPI packages that
couldn't be read and remain unverified.
To check DAG compatibility for an upgrade:
In the Google Cloud console, go to the Environments page.
In the list of environments, click the name of your environment.
The Environment details page opens.
On the Environment configuration tab, locate Image version,
and click Upgrade.
In the Environment version upgrade panel, in the New version list,
select
an Airflow version or build
that you want to upgrade to.
In the Agentic upgrade check section, click
auto_awesomeUpgrade check.
The Environment version upgrade panel closes without starting an
upgrade, and the Ask agent panel opens while
Managed Airflow Agent analyzes your DAGs.
Review the report in the Ask agent panel, and
apply any required changes to your DAG files before upgrading your
environment. You can also ask follow-up questions in the Ask agent
panel, such as asking Managed Airflow Agent to check specific
DAGs.
Check for conflicts with Managed Airflow (Gen 3)
Managed Airflow (Gen 3) is the latest major version of
Managed Airflow. You can check if a Managed Airflow (Gen 2) environment can
be upgraded to Managed Airflow (Gen 3) with an upgrade check. The following
description applies to Managed Airflow (Gen 2) environments.
While it isn't possible to migrate your environment from Managed Airflow (Gen 2) to
Managed Airflow (Gen 3) in-place, you can check for compatibility problems using an
upgrade check. We recommend to do it before
migrating to Managed Airflow (Gen 3).
To check for compatibility with Managed Airflow (Gen 3), make a regular upgrade check
of your Managed Airflow (Gen 2) environment and specify a Managed Airflow (Gen 3) version
as a target.
Each reported conflict can have the following types:
BLOCKING conflicts report incompatible environment configuration elements
that aren't supported in Managed Airflow (Gen 3). We recommend to address these
conflicts before starting a migration to Managed Airflow (Gen 3).
NON_BLOCKING conflicts report environment configuration elements that are
different in Managed Airflow (Gen 3) and might cause unexpected behavior. For
example, changes of the default values such as default maintenance windows
are reported as non-blocking conflicts. We recommend to check if these
conflicts can cause problems before starting the migration process.
PyPI package conflicts are also reported as part of this check. They are
reported separately from the configuration conflicts, in the same way as
for a regular PyPI package compatibility check.
You can roll back an environment upgrade if you encounter degraded performance,
Airflow bugs, or compatibility issues with your DAGs, plugins, or dependencies.
You can roll back an upgrade within 30 days of the upgrade operation if the
environment is in the RUNNING state. It's possible to roll back to versions
that have reached their end of support date. For more information, see
Limitations of upgrade and rollback operations.
In addition to rolling back a single upgrade, you can:
Perform multiple successive rollbacks:
Example:
A > B > C > B > A
(if rolling back to B and A satisfies limitations).
Perform skip-version rollbacks:
Example: A > B > C > A
(if rolling back to A satisfies limitations).
During a rollback, only the Airflow build of the environment is reverted to
the specified version. Managed Airflow preserves your environment's
data and state during rollbacks:
DAG files and execution history: All DAG definitions, DAG run history, task
instance states, and XComs remain intact in the metadata database.
Environment configuration: Airflow configuration overrides, environment
variables, custom PyPI packages, and scaling settings are preserved.
If you use non-strict PyPI package version requirements for your custom
PyPI packages, your environment might have a different package version
after the rollback (this version will still satisfy the specified version
requirement).
If you changed environment configuration during the upgrade,
such as modifying environment variables or adjusting resource limits for
Airflow components, these changes aren't reverted. If required, you can
revert the changes manually before or after the rollback.
Logs and monitoring: Task execution logs stored in Cloud Logging and
metrics history in Cloud Monitoring are preserved.
Airflow database schema updates (Alembic migrations) are automatically rolled
back to match the target Airflow version schema. For the list of database
migrations that are present in each Airflow version, see
Airflow Database Migrations in Airflow
documentation. During a rollback operation, all listed migrations between the
current Airflow version and the target Airflow version are rolled back.
If a rollback operation fails during execution, Managed Airflow
automatically attempts to restore the environment to its pre-operation state,
which is the Airflow version and build that were used before the rollback was
started. Review the operation error message and logs in Cloud Logging for
troubleshooting details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-25 UTC."],[],[]]