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