mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-26 10:58:12 +08:00
16 lines
346 B
Python
16 lines
346 B
Python
# Django
|
|
from django.core.management.base import BaseCommand
|
|
from django.utils.translation import ugettext as _
|
|
|
|
|
|
from django_q.monitor import monitor
|
|
|
|
class Command(BaseCommand):
|
|
# Translators: help text for qmonitor management command
|
|
help = _("Monitors Q Cluster activity")
|
|
|
|
def handle(self, *args, **options):
|
|
monitor()
|
|
|
|
|