kang-seongbeom commented on issue #56192:
URL: https://github.com/apache/airflow/issues/56192#issuecomment-4470301199

   > [@sw-cyderes](https://github.com/sw-cyderes) I did a safer (and more 
dummy) patch (until the issue will be fixed).
   > 
   > the cleaner can get an array of tables names to purge, I just provided all 
the table except the `dag_version`.
   > 
   > so the table won't be cleaned, but at least in my case it does not contain 
a lot of data, so as a patch it is good enough for me.
   
   In the #63703 issue, there is a command to perform a cleanup excluding the 
dag_version and dag tables.
   
   ``` airflow db clean --clean-before-timestamp "$(date -d '-15 days' 
+%Y-%m-%dT%H:%M:%S)" --skip-archive -y --tables 
"_xcom_archive,asset_event,callback_request,celery_taskmeta,celery_tasksetmeta,dag_run,deadline,import_error,job,log,sla_miss,task_instance,task_instance_history,task_reschedule,trigger,xcom"
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to