Skip to content

Add db cleanup function for easier debugging and testing of dags #63107

@Avihais12344

Description

@Avihais12344

Description

I think that a function that automatically truncates the Airflow's can be beneficial for us to help us combine and manage the state of airflow with dag.test and debugging dags.

Use case/motivation

I want to have a function that I can call using my python code (mostly in my tests) to truncate the whole airflow db locally, it would only work in unit tests mode and on sqlite only (to avoid deleting production db).

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:MetaDBMeta Database related issues.kind:featureFeature Requestsneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions