Added Reddit recurring tasks to update the details

This commit is contained in:
2011-05-24 11:38:52 +01:00
parent b10fc10b79
commit 298c99c6a6
2 changed files with 40 additions and 0 deletions

View File

@@ -197,6 +197,10 @@ CELERYBEAT_SCHEDULE = {
"task": "hr.tasks.blacklist_check",
"schedule": timedelta(days=1),
},
"reddit-update": {
"task": "reddit.tasks.queue_account_updates",
"schedule": timedelta(minutes=15),
}
}
CELERY_SEND_TASK_ERROR_EMAILS = True
@@ -204,6 +208,7 @@ CELERY_RESULT_BACKEND = "amqp"
CELERY_DISABLE_RATE_LIMITS = True
CELERYD_PREFETCH_MULTIPLIER = 128
CELERY_ALWAYS_EAGER = DEBUG
CELERY_EAGER_PROPAGATES_EXCEPTIONS = DEBUG
# Load the Celery tasks
djcelery.setup_loader()