mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-10 07:50:55 +08:00
adds qinfo management command
It seems more practical to give this its own command instead of `qmonitor --info`
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user