Mercurial > public > sg101
diff custom_search/tasks.py @ 750:aeafbf3ecebf
For #63, upgrade to celery 3.1.7.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 31 Dec 2013 16:36:22 -0600 |
parents | f0b997651497 |
children | f97dd33ca52d |
line wrap: on
line diff
--- a/custom_search/tasks.py Mon Dec 30 15:05:43 2013 -0600 +++ b/custom_search/tasks.py Tue Dec 31 16:36:22 2013 -0600 @@ -2,13 +2,15 @@ Tasks for our custom search application. """ +from __future__ import absolute_import + +from celery import shared_task from django.conf import settings -from celery.task import task from queued_search.management.commands.process_search_queue import Command -@task +@shared_task def process_search_queue_task(): """ Celery task to run the queued_search application's process_search_queue