Added task to clean-up old API access logs

This commit is contained in:
2010-12-20 11:46:25 +00:00
parent a41ab81712
commit 21d9587645
2 changed files with 22 additions and 2 deletions

View File

@@ -155,6 +155,11 @@ FULL_API_CHARACTER_ID = 246102445
BANNED_EMAIL_DOMAINS = ['att.net']
## Eve Proxy settings
EVE_PROXY_KEEP_LOGS = 30
# try and import local settings
try:
from settingslocal import *
@@ -176,6 +181,9 @@ CELERYBEAT_SCHEDULE = {
"task": "eve_api.tasks.alliance.import_alliance_details",
"schedule": timedelta(hours=6),
},
"api-log-clear": {
"task": "eve_proxy.tasks.clear_old_logs"
"schedule": timedelta(days=1)
}
CELERY_SEND_TASK_ERROR_EMAILS = True