[DCV-3797] Add Airflow metadata database cleanup how-to#49
Open
gams87 wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
@alejandro-datacoves why the new decorator vs just putting the info like astronomer and letting them do it? Then it could work in airlfow 2 and many ppl would not be moving to airflow 3 any time soon. I think we shouldnt give ppl things like a decorator that can delete things. I am just thinking we give them a sample dag |
Contributor
Author
|
Let's say that with the decorator it would be like batteries included, but we can extract the logic from the decorator and that would be the example DAG. This is for Airflow 3; I thought it would be a good incentive to migrate to Airflow 3. For Airflow 2 the implementation would be different, but it can still be done. |
Contributor
|
the people who have this problem will be on 2 for a while. so I would at least show both options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a customer how-to for cleaning up the Airflow metadata database using the new
@task.datacoves_airflow_db_cleanupdecorator (Airflow 3 only), covering which tables are cleaned, the decorator parameters, an example DAG, and the recommended dry-run first.Companion to the code PR datacoves/datacoves#1520.
🤖 Generated with Claude Code