apache/airflow

skip_archive should actually skip archive in db clean command

Open

#42,003 opened on Sep 4, 2024

View on GitHub
 (8 comments) (1 reaction) (0 assignees)Python (16,781 forks)batch import
area:db-migrationsgood first issuekind:featurekind:meta

Repository metrics

Stars
 (44,809 stars)
PR merge metrics
 (Avg merge 7d 18h) (834 merged PRs in 30d)

Description

Body

Currently the delete process uses the archive table in the process of deletion. But we should refactor this so it doesn't need this and actually not create the archive table at all when user specifies this option.

The issue is when you are deleting a lot of rows, particularly if you have a low statement timeout, you may hit errors.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Contributor guide