comparison custom_search/tasks.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/custom_search/tasks.py@a053fbd3ac98
children f0b997651497
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 """
2 Tasks for our custom search application.
3
4 """
5 from celery.task import task
6
7 from queued_search.management.commands.process_search_queue import Command
8
9
10 @task
11 def process_search_queue_task():
12 """
13 Celery task to run the queued_search application's process_search_queue
14 command.
15
16 """
17 command = Command()
18 command.execute()