mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 22:38:13 +08:00
medic is now sentinel and runs in it's own process sentinel shutdown procedure more stable
12 lines
239 B
Python
12 lines
239 B
Python
from django.core.management.base import BaseCommand
|
|
from django_q import Cluster
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "My shiny new management command."
|
|
|
|
def handle(self, *args, **options):
|
|
q = Cluster()
|
|
q.start()
|
|
|