Skip to content

[DCV-3797] Add Airflow metadata database cleanup how-to#49

Open
gams87 wants to merge 1 commit into
mainfrom
DCV-3797-airflow-cleanup-docs
Open

[DCV-3797] Add Airflow metadata database cleanup how-to#49
gams87 wants to merge 1 commit into
mainfrom
DCV-3797-airflow-cleanup-docs

Conversation

@gams87

@gams87 gams87 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a customer how-to for cleaning up the Airflow metadata database using the new @task.datacoves_airflow_db_cleanup decorator (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

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gams87
gams87 requested a review from noel July 14, 2026 21:01
@noel

noel commented Jul 15, 2026

Copy link
Copy Markdown
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

@noel noel 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.

see comment

@gams87

gams87 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@noel

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.

@noel

noel commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

the people who have this problem will be on 2 for a while. so I would at least show both options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants