reduce tweet archive retention to 3 days from 7
This commit is contained in:
parent
3e5956db63
commit
2f73ec3827
4
tasks.py
4
tasks.py
|
@ -112,8 +112,8 @@ def periodic_cleanup():
|
|||
Session.query.filter(Session.updated_at < (db.func.now() - timedelta(hours=48))).\
|
||||
delete(synchronize_session=False)
|
||||
|
||||
# delete twitter archives after 7 days
|
||||
TwitterArchive.query.filter(TwitterArchive.updated_at < (db.func.now() - timedelta(days=7))).\
|
||||
# delete twitter archives after 3 days
|
||||
TwitterArchive.query.filter(TwitterArchive.updated_at < (db.func.now() - timedelta(days=3))).\
|
||||
delete(synchronize_session=False)
|
||||
|
||||
# delete anonymous oauth tokens after 1 day
|
||||
|
|
Loading…
Reference in New Issue