From ce67119cbca8c9422f5dc0532f4c22858ac8ed0e Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Tue, 10 Sep 2024 19:36:01 +0100 Subject: [PATCH] config: clean session activity tracking table * https://invenio-accounts.readthedocs.io/en/latest/configuration.html#user-tracking --- hepdata/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hepdata/config.py b/hepdata/config.py index 3083c301..d27edb0b 100644 --- a/hepdata/config.py +++ b/hepdata/config.py @@ -80,6 +80,14 @@ def _(x): 'schedule': crontab(minute=0, hour=1), # execute daily at 1am UTC 'args': (1,), # INSPIRE records (with HEPData) updated yesterday }, + 'session_cleaner': { + 'task': 'invenio_accounts.tasks.clean_session_table', + 'schedule': timedelta(days=1), + }, + 'delete_login_ips': { + 'task': 'invenio_accounts.tasks.delete_ips', + 'schedule': timedelta(days=30), + }, } # Number of workers running the datacite queue