From aa59a5ac918b40737678d1f46c3238215050fb11 Mon Sep 17 00:00:00 2001 From: Rikki Guy Date: Thu, 26 Oct 2023 13:28:21 +0100 Subject: [PATCH] tools: Updata data_run.sh with new retention policy The new data retention policy is to: * Delete all data not in-use by the current or previous Latest best * Delete data after 90 days, even if it's still in-use --- tools/data_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/data_run.sh b/tools/data_run.sh index c5472778..1f6c344b 100755 --- a/tools/data_run.sh +++ b/tools/data_run.sh @@ -81,7 +81,7 @@ TOTAL_RUNS=`./datastore/manage.py list_datagetter_runs --total` if [ $TOTAL_RUNS -gt $MAX_TOTAL_RUNS_IN_DB ]; then echo_stamp "Delete oldest datagetter data" - ./datastore/manage.py delete_datagetter_data --older-than-days 31 --no-prompt + ./datastore/manage.py delete_datagetter_data --all-not-in-use --older-than-days 90 --force-delete-in-use-data --no-prompt fi echo_stamp "Deleting old GrantNav packages"