Deploy rollbacks are an emergency option if a Deployment unexpectedly stops working after a recent deploy. For example, if one of your DAGs worked in development but suddenly fails in a mission-critical production Deployment, you can roll back to your previous deploy to quickly get your pipeline running again. This allows you to revert your deployment to a known good state while you investigate the cause of the failure. You can roll back to any deploy in the last three months regardless of your DAG code or Deployment settings. However, rollbacks are only supported for Runtime 5.0.0 and above or its equivalent Airflow version, 2.3.0 and above.
deployment.images.push or deployment.dags.push or both to roll back images and/or DAGs, respectively, for a Deployment.
If deploy rollbacks are configured for your installation, you can enable them in individual Deployments through the Deployment Settings page.
A deploy rollback is a new deploy of a previous version of your code. This means that the rollback deploy appears as a new deploy in Deploy History, and the records for any deploys between your current version and rollback version are still preserved. In Git terms, this is equivalent to git revert.
When you trigger a rollback, the following information is rolled back:
The following information isn’t rolled back:
Logs related to the rollback are exported to Elasticsearch.
You might want to enable your users to roll back DAG-only or image-only deploys, without granting them the ability to roll back complete project deploys. This allows you to maintain higher security measures, by limiting who has permission to roll back both image and DAG deploys, or only one of the two.
deployment.images.push: Grants permission to roll back just the image of a revision in an imaged-based, DAG-only, and gitSync deployment.deployment.dags.push: Grants permission to roll back only DAGs for DAG-only deploys.Users with both permissions can roll back both images and DAGs. If users attempt to roll back a deploy and have limited permissions, they can only choose the type of deploy to roll back that they have permission for.
Follow the procedure in Customize role permissions to configure these user permissions.