Skip to content

Removed dags are not deactivated when upgrading from 2.x to 3.0.6 #60763

@deepak4babu

Description

@deepak4babu

Apache Airflow version

Other Airflow 3 version (please specify below)

If "Other Airflow 3 version" selected, which one?

3.0.6

What happened?

When upgrading airflow from 2.x to 3.06 and some dags are removed at the same time. The removed dags are not deactivated.

We use the default config values.

We suspect that the issue is due to null bundle_name for the removed dags as dags without bundle_names are not scanned for deactivation.

What you think should happen instead?

The removed dags should be deactivated and should be cleared from UI.

How to reproduce

Create a 2.x airflow enviroment with some dags. Upgrade the env to 3.0.6 and remove the dags at the same time.

Operating System

Debian GNU/Linux 12 (bookworm)

Versions of Apache Airflow Providers

apache-airflow-providers-celery==3.12.2
apache-airflow-providers-cncf-kubernetes==10.8.2
apache-airflow-providers-common-compat==1.7.3
apache-airflow-providers-common-io==1.6.2
apache-airflow-providers-common-sql==1.27.5
apache-airflow-providers-fab==2.4.1
apache-airflow-providers-ftp==3.13.2
apache-airflow-providers-http==5.3.3
apache-airflow-providers-imap==3.9.2
apache-airflow-providers-postgres==6.2.3
apache-airflow-providers-smtp==2.2.0
apache-airflow-providers-sqlite==4.1.2
apache-airflow-providers-standard==1.6.0

Deployment

Other

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions