cablegates/pandora/backend/management/commands/backgroundtasks.py

23 lines
477 B
Python
Raw Normal View History

2009-12-31 15:06:26 +00:00
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
2010-01-22 23:25:48 +00:00
2009-12-31 15:06:26 +00:00
import os
from os.path import join, dirname, basename, splitext, exists
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from ... import daemon
2010-01-22 23:25:48 +00:00
2009-12-31 15:06:26 +00:00
class Command(BaseCommand):
"""
2010-01-22 23:25:48 +00:00
listen to rabbitmq and execute background task.
2009-12-31 15:06:26 +00:00
"""
2010-01-22 23:25:48 +00:00
help = 'listen to rabbitmq and execute background task.'
2009-12-31 15:06:26 +00:00
args = ''
def handle(self, **options):
daemon.run()