Skip to content

Add information on DAG pausing/deactivation/deletion - #22025

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:dag-dectivation-and-delettion
Mar 7, 2022
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:dag-dectivation-and-delettion

Conversation

@potiuk

@potiuk potiuk commented Mar 6, 2022

Copy link
Copy Markdown
Member

Many of our users do not understand how DAG deactivation, deletion
works - it's quite straightforward for us, who understand how
scheduler, serialization and refresh works, but we have not really
documented everywhere what the differences are between pausing,
deactivation and actual deletion of the metadata.

It has been distributed in a few places (API documentation, comments
when you issued a "delete" UI action, but I found that there is no
single place where it is described.

This PR adds documentation in "DAG" page about it - explaining
what happens in those different states and instructing the user
to follow -> remove dag file -> wait for deactivation -> delete
pattern if they want to remove a DAG.

Related: #21864


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@potiuk
potiuk requested a review from kaxil as a code owner March 6, 2022 13:40
@potiuk
potiuk requested review from BasPH and jedcunningham March 6, 2022 13:41
@potiuk
potiuk force-pushed the dag-dectivation-and-delettion branch from a048f0f to 0c02960 Compare March 6, 2022 14:22
Comment thread docs/apache-airflow/concepts/dags.rst Resolved
Comment thread docs/apache-airflow/concepts/dags.rst Resolved
Comment thread docs/apache-airflow/concepts/dags.rst Resolved
@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label Mar 6, 2022
@github-actions

github-actions Bot commented Mar 6, 2022

Copy link
Copy Markdown
Contributor

The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

1 similar comment
@github-actions

github-actions Bot commented Mar 6, 2022

Copy link
Copy Markdown
Contributor

The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@potiuk
potiuk force-pushed the dag-dectivation-and-delettion branch from 0c02960 to 56acbc6 Compare March 6, 2022 18:11
Many of our users do not understand how DAG deactivation, deletion
works - it's quite straightforward for us, who understand how
scheduler, serialization and refresh works, but we have not really
documented everywhere what the differences are between pausing,
deactivation and actual deletion of the metadata.

It has been distributed in a few places (API documentation, comments
when you issued a "delete" UI action, but I found that there is no
single place where it is described.

This PR adds documentation in "DAG" page about it - explaining
what happens in those different states and instructing the user
to follow -> remove dag file -> wait for deactivation -> delete
pattern if they want to remove a DAG.

Related: apache#21864
@potiuk
potiuk force-pushed the dag-dectivation-and-delettion branch from 56acbc6 to 9053069 Compare March 6, 2022 18:31

@eladkal eladkal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should finalize #14459 as this becomes very confusing.

@potiuk

potiuk commented Mar 6, 2022

Copy link
Copy Markdown
Member Author

We probably should finalize #14459 as this becomes very confusing.

It is.

@potiuk

potiuk commented Mar 6, 2022

Copy link
Copy Markdown
Member Author

I added a proposal to rename the "tab" to something else than active @eladkal

@potiuk
potiuk merged commit db76f0b into apache:main Mar 7, 2022
@potiuk
potiuk deleted the dag-dectivation-and-delettion branch March 7, 2022 13:45
@ephraimbuddy ephraimbuddy added the type:doc-only Changelog: Doc Only label Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:documentation okay to merge It's ok to merge this PR as it does not require more tests type:doc-only Changelog: Doc Only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants