Files
django-q2/django_q/management/commands/qmonitor.py
T
Ilan Steemers b113a52825 Restructured all the modules
The core module was becoming too large.
By splitting it in  cluster, monitor and tasks it becomes more manageable. It also reflects the documentation structure.
2015-07-03 15:12:11 +02:00

17 lines
341 B
Python

# Django
from django.core.management.base import BaseCommand
from django.utils.translation import ugettext as _
from ...monitor import monitor
class Command(BaseCommand):
# Translators: help text for qmonitor management command
help = _("Monitors Q Cluster activity")
def handle(self, *args, **options):
monitor()