adds qinfo management command

It seems more practical to give this its own command instead of `qmonitor --info`
This commit is contained in:
Ilan
2015-08-10 13:20:17 +02:00
parent 63030aa9d1
commit e86308b434
5 changed files with 22 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
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()