Skip to content

Commit

Permalink
tools: Updata data_run.sh with new retention policy
Browse files Browse the repository at this point in the history
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
  • Loading branch information
R2ZER0 committed Oct 26, 2023
1 parent afedffa commit aa59a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/data_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aa59a5a

Please sign in to comment.