Files
django-q2/django_q/management/commands/qinfo.py
T
Ilan e86308b434 adds qinfo management command
It seems more practical to give this its own command instead of `qmonitor --info`
2015-08-10 13:20:17 +02:00

13 lines
337 B
Python

from django.core.management.base import BaseCommand
from django.utils.translation import ugettext as _
from django_q.monitor import info
class Command(BaseCommand):
# Translators: help text for qinfo management command
help = _('General information over all clusters.')
def handle(self, *args, **options):
info()