Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
749:b6e98717690b | 750:aeafbf3ecebf |
---|---|
1 """ | 1 """ |
2 Tasks for our custom search application. | 2 Tasks for our custom search application. |
3 | 3 |
4 """ | 4 """ |
5 from __future__ import absolute_import | |
6 | |
7 from celery import shared_task | |
5 from django.conf import settings | 8 from django.conf import settings |
6 from celery.task import task | |
7 | 9 |
8 from queued_search.management.commands.process_search_queue import Command | 10 from queued_search.management.commands.process_search_queue import Command |
9 | 11 |
10 | 12 |
11 @task | 13 @shared_task |
12 def process_search_queue_task(): | 14 def process_search_queue_task(): |
13 """ | 15 """ |
14 Celery task to run the queued_search application's process_search_queue | 16 Celery task to run the queued_search application's process_search_queue |
15 command. | 17 command. |
16 | 18 |