Reduce time to store old check results to 7 days

This commit is contained in:
Frank Hamand 2017-09-05 13:58:28 +01:00
parent 9b165b1e3f
commit 6d05e19d96
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
master
------
* Reduce time to store old check results to 7 days
- Currently stores for 2 months, but there's no actual way to view the old data.
Version 0.11.0
--------------

View File

@ -68,7 +68,7 @@ def update_shifts():
@task(ignore_result=True)
def clean_db(days_to_retain=60, batch_size=10000):
def clean_db(days_to_retain=7, batch_size=10000):
"""
Clean up database otherwise it gets overwhelmed with StatusCheckResults.