Added basic celery support and configuration.

This commit is contained in:
Chris Church
2013-03-14 16:11:14 -04:00
parent da9a31b599
commit a1fb81c4f4
4 changed files with 23 additions and 0 deletions

7
lib/main/tasks.py Normal file
View File

@@ -0,0 +1,7 @@
from celery import task
from lib.main.models import *
@task(name='run_launch_job')
def run_launch_job(launch_job_pk):
launch_job = LaunchJob.objects.get(pk=launch_job_pk)
# FIXME: Do stuff here!