[GitHub] [airflow] jedcunningham commented on a diff in pull request #29058: Add command to export purged records to CSV files

2023-01-31 Thread via GitHub
jedcunningham commented on code in PR #29058: URL: https://github.com/apache/airflow/pull/29058#discussion_r1092214629 ## docs/apache-airflow/howto/usage-cli.rst: ## @@ -217,6 +217,17 @@ You can use the ``--dry-run`` option to print the row counts in the primary tabl By defa

[GitHub] [airflow] jedcunningham commented on a diff in pull request #29058: Add command to export purged records to CSV files

2023-01-30 Thread via GitHub
jedcunningham commented on code in PR #29058: URL: https://github.com/apache/airflow/pull/29058#discussion_r1091122925 ## airflow/utils/db_cleanup.py: ## @@ -370,3 +383,19 @@ def run_cleanup( session=session, ) session.commit() + + +@pr

[GitHub] [airflow] jedcunningham commented on a diff in pull request #29058: Add command to export purged records to CSV files

2023-01-30 Thread via GitHub
jedcunningham commented on code in PR #29058: URL: https://github.com/apache/airflow/pull/29058#discussion_r1090860622 ## airflow/utils/db_cleanup.py: ## @@ -123,6 +127,15 @@ def _check_for_rows(*, query: Query, print_rows=False): return num_entities +def _dump_db(*, ta